+ Reply to Thread
Results 1 to 5 of 5

Thread: cURL problems

  1. #1
    zemsten is offline x10Hosting Member zemsten is an unknown quantity at this point
    Join Date
    Feb 2009
    Posts
    3

    Question cURL problems

    So I have a completely free account and first of all I'm not sure if the free php supports the cURL library. Does it?
    I wrote a script for a computer class and it's not working, I get the white screen of death. I've echoed and commented and found that the problem is after I use $ch=curl_init(). Am I doing something wrong?

    PHP Code:
    $ch curl_init();
                
    curl_setopt($chCURLOPT_VERBOSE0);
                echo(
    'TEST CURL');
                
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
                
    curl_setopt($chCURLOPT_HEADER0);
                
    curl_setopt($chCURLOPT_USERAGENT$_SERVER["HTTP_USER_AGENT"]);
                
    //curl_setopt($ch, CURLOPT_COOKIEFILE, "mail_to_phone.txt");
                //curl_setopt($ch, CURLOPT_COOKIEJAR, "mail_to_phone.txt");
                
    curl_setopt($chCURLOPT_FRESH_CONNECT1);
                
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
                
    $data = array('cell1' => $_SESSION['cell1'], 'cell2' => $_SESSION['cell2'], 'cell3' => $_SESSION['cell3'], 'tos' => 'yes');
                
    curl_setopt($chCURLOPT_URL'http://mobilecarrierlookup.com/api/exe.asp');
                
    curl_setopt($chCURLOPT_POSTTRUE);
                
    curl_setopt($chCURLOPT_POSTFIELDS'cell1=$cell1&cell2=$cell2&cell3=$cell3&tos=yes');
                
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
                
    $result1 curl_exec($ch);
                
    curl_close($ch); 

  2. #2
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: cURL problems

    make sure that you are using php level 2. i believe that level 1 has curl disabled.

    a sure fire way to check this is using
    PHP Code:
    if (!function_exists('curl_init'))
      echo 
    "cURL Support Disabled"
    Last edited by xPlozion; 03-02-2009 at 08:11 PM. Reason: forgot to close php tag

  3. #3
    zemsten is offline x10Hosting Member zemsten is an unknown quantity at this point
    Join Date
    Feb 2009
    Posts
    3

    Re: cURL problems

    yeah, it looks like it's disabled. damn, i had gotten all the testing done except for the sendmail part on my own local machine, i was going to put it on here to see if it worked. does "level 2" or whatever cost $$$?

  4. #4
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: cURL problems

    no, level 2 is free, but i don't know if the script to make it level 2 is enabled yet, due to the new site.

  5. #5
    zemsten is offline x10Hosting Member zemsten is an unknown quantity at this point
    Join Date
    Feb 2009
    Posts
    3

    Re: cURL problems

    yeah, i couldn't find it. i tried clicking upgrade php and it said "this feature is not enabled." or something like that.

+ Reply to Thread

Similar Threads

  1. Paid account.. Will it fix problems?
    By altrock182182 in forum Free Hosting
    Replies: 3
    Last Post: 01-14-2008, 04:23 PM
  2. NOTE: For all problems regarding phpBB3 RC6
    By CrownVictoriaCop in forum Free Hosting
    Replies: 1
    Last Post: 10-14-2007, 03:35 PM
  3. Problems...problems...problems...
    By eternal-empire in forum Free Hosting
    Replies: 4
    Last Post: 09-21-2007, 03:53 PM
  4. is PHP curl enabled on the Absolut server?
    By LRgraham14 in forum Free Hosting
    Replies: 3
    Last Post: 09-09-2007, 03:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers