problem with cURL.

Discussion in 'PHP' started by bartolay13, Feb 27, 2008.

  1. #1
    Fatal error: Call to undefined function curl_init() in C:\wamp\www\prac\curl.php on line 3

    i got these error message, i just simply call the

    curl_init("www.mysite.com.ph");

    why is that? my server is php 5
     
    bartolay13, Feb 27, 2008 IP
  2. greatlogix

    greatlogix Active Member

    Messages:
    664
    Likes Received:
    13
    Best Answers:
    1
    Trophy Points:
    85
    #2
    curl is not installed on your server.

    open php.ini file and remove semicolon from this line
    ;extension=php_curl.dll

    Make sure you have properly set extension_dir in php.ini
     
    greatlogix, Feb 27, 2008 IP
  3. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #3
    how can i enable this using ini_set(); ???
     
    bartolay13, Feb 27, 2008 IP
  4. greatlogix

    greatlogix Active Member

    Messages:
    664
    Likes Received:
    13
    Best Answers:
    1
    Trophy Points:
    85
    #4
    Its not possible using ini_set(). You must have to configure curl with php.
     
    greatlogix, Feb 28, 2008 IP