tags:

views:

1337

answers:

3

having issue setting up cURL with iis 6.0, windows server 2003, php 5.2.6

have installed to C:\PHP

set PHPRC = C:\PHP\php.ini

copied ssleay32.dll andlibeay32.dll to C:\PHP

in php.ini, uncommented the line extension=php_curl.dll

extension_dir="C:\PHP\ext"

c:\php\ext has the dll php_curl.dll

EDIT 1:

C:\PHP is in PATH

still getting "Fatal error: Call to undefined function curl_init()"

+2  A: 

Make sure php_curl.dll is in the directory listed under "extension_dir" in php.ini. If it is already, try restarting IIS (Apache always needs a restart from me when making php.ini changes).

EDIT 1:

Try opening up a command prompt to c:\php and running:

php -c . -i | find /i "curl"

Does it come back with any output? If so, IIS is using the wrong php.ini file.

EDIT 2:

Is c:\php in your PATH? You can check with "echo %PATH%" from the command prompt.

Randy
updated the post, i have extension_dir set and the dll is located there as well as in c:\phpthis is drivin me bonkers...
joshjdevl
no, there is no curland when i do a phpinfo() there is none eitherit does say it's loading c:\php\php.ini, so am really confused why its not loading
joshjdevl
yup, C:\PHP is in my path.
joshjdevl
+1  A: 

Maybe it's loading c:\windows\php.ini? I take it you've restarted IIS since you changed the config... :)

Greg
yes, restarted iis, as well as rebooted the machine.i checked c:\windows\php.ini, though no file exists.so i copied my c:\php\php.ini to c:\windows\php.ini, though still doesn't resolve the issue...i'm tearing my hair out on this one...
joshjdevl
+1  A: 

i ended up doin a reinstall of php, then unistalling php. then i copied and extracted the thread safe php package into c:\php rather than using the non thread safe package

joshjdevl