Trouble enabling 'libcurl' extension

Discussion in 'PHP' started by kb4, Jul 23, 2007.

  1. #1
    Hello all,

    I'm having trouble enabling the libcurl library for my php installation.

    I am using the 'XAMPP' Apache/PHP/MySQL package on a windows XP machine, so according to the instructions (unless I have misunderstood them !) I simply uncomment :

    extension=php_curl

    line in php.ini, which I have. I have also copied the two dlls libeay32.dll and ssleay32.dll to the C:\WINDOWS\system and \system32 (put them in both as I'm not sure from the instructions which directory it should be). I can confirm the dll php_curl is present in the extensions subdirectory.

    But when I try using curl_init() I get an 'undefined function' error.

    Anyone suggestions.. I've no doubt I have made a simple error (I am new to PHP)

    Many thanks

    KB.
     
    kb4, Jul 23, 2007 IP
  2. kb4

    kb4 Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sorted the problem now, I found that there was a second php.ini file that is obviously being used by Apache to configure the enviroment.
     
    kb4, Jul 23, 2007 IP