Gurus out there PLEASE HELP!!!

I have wamp installed on my system (Windows 7 and I have no other server / php set up on this machine) and am trying to run a script that uses curl() ( curl_init() ) through my local server.

I have enabled php_curl() on my wamp extensions and have checked the php.ini file in both my php/bin and my apache/bin folders and both times, the line "extension=php_curl.dll" does NOT have a semi-colon in front of it.

Now, when I try and run the command through the command prompt, I get the error:
Fatal error: Call to undefined function curl_init() in C:\wamp\www\auctions\scripts\auction\Requester.php on line 28
... And line 28 of Requester.php simply says "$this->curl=curl_init();"

A strange thing, though, is that when I run phpinfo(), I get that:
Configuration File (php.ini) Path = C:\Windows

BUT it also says for the curl portion that:
cURL support = enabled
cURL Information = 7.19.4
Age = 3

I am truly at wit's end here - I don't know why this is happening or what to do about it... I am THINKING it has something to do with running the php command at the command line, but I don't know what needs to be done so as to make it run well.

PLEASE HELP!!!!!!

Thanks!

    I was installing wamp 2 on vista yesterday and had a similar problem I had
    amended the apache version but not the php.ini version.ory
    My PATH was pointed at the php directory and the apache directories so it was reading the php.ini first when I amended my php.ini it worked.

    In your case I suspect you haven't got the php or apache path variable set

      I'm pretty sure polydeuces is headed in the correct direction. Where is the curl DLL you mention? Compare its location to the output of PATH.

      Something like this, perhaps?

      c:>where php_curl.dll
      c:\program files\PHP\php_curl.dll

      c:>path
      c:\windows\system32;c:\windows;c:\windows\system32\wbem

      If the path for the DLL isn't in your PATH env variable, that might explain the issue. Oh, and I dunno if you've got where on your Winbox ... but they keep stealing UNIX stuff as fast as they can think of new names for it, so I know it's on Win7 and I think on Win6/Vista.

        Write a Reply...