Help - Search - Members - Calendar
Full Version: Call To Undefined Function Curl_init()
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
NeoSniperkiller
hello

I'm encountering the following error:

CODE
Fatal error: Call to undefined function curl_init() in /www/clanteam.com/c/i/t/citoe/htdocs/classes/api_class.php on line 189


Is it possible to enable the curl package ?
Or any other way to avoid this error?

Thanks in advance!
ssfdre38
first all remote connections are disable and second cURL isnt even installed on Zymic so you can not even use it
NeoSniperkiller
QUOTE(ssfdre38 @ Jun 15 2011, 03:39 PM) *
first all remote connections are disable and second cURL isnt even installed on Zymic so you can not even use it


so if i wanted to reach a website that returns price values from ingame, that would not be possible? (using xmlhttpresponse)

just to give you an idea what the script, that uses curl, wanted to do:

CODE
global $MySelf;

        // Handle not-logged in shizms.
        if (!is_object($MySelf)) {
            return (false);
        }

        // URL
        $url = "http://api.eve-online.com/account/Characters.xml.aspx";

        // Post Data
        $auth = array (
            'userID' => $this->api_id,
            'apiKey' => $this->api_key
        );

        // Set up CURL

        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_HEADER, false);
        curl_setopt($ch, CURLOPT_POST, 1);
        //        curl_setopt($ch, CURLOPT_FILE, $fp);
        curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($auth));
        $result = curl_exec($ch);
        curl_close($ch);

        // only parse XML when we got something
        if (!empty($result)) {

            //Initializes the XML Parser
            $xml = new SimpleXMLElement($result);

            /*
             * Multiple character shizms
             * We have to loop through all character names until
             * we find the one that matches the username.
             */
            foreach ($xml->result->rowset->row as $row) {
                if (strtolower($row[name]) == strtolower($MySelf->getUsername())) {
                    //fwrite($log, "Trying: $row[name] for " . $MySelf->getUsername());
                    $api_char = strtolower(sanitize($row[name]));
                    $api_id = $row[characterID];
                    $found = true;
                }
            }
ssfdre38
well you still cant do it cause we do not have cURL installed or enable at all cause so that script will NOT work on Zymic
NeoSniperkiller
QUOTE(ssfdre38 @ Jun 15 2011, 03:52 PM) *
well you still cant do it cause we do not have cURL installed or enable at all cause so that script will NOT work on Zymic


so if I would change the part that uses cURL to another way, it would work?
like opening a page with
CODE
file_get_contents


or is that also disabled?
ssfdre38
no file_get_contents is not disable
NeoSniperkiller
after trying, i should say

IT IS DISABLED...
ssfdre38
well any and all remote connections are disable
NeoSniperkiller
QUOTE(ssfdre38 @ Jun 18 2011, 05:25 PM) *
well any and all remote connections are disable


thank you for wasting my time by not saying that earlier...
i'm off to HelioHost, you can remove my account here...

mail blocked, no cron, outgoing connection blocked, ...
this hosting service is really blocking my progress

it was fun, but cya
ssfdre38
ok but first do NOT post other hosting sites and second mail() isnt blocked you can purchase it for a one time fee of $10 USD and its set up like this for stopping spammers. Remote connectios are disable as well cause of connections spammers. it only takes a few to ruin it for everybody
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.