joshjdevl
joshjdevl

Reputation: 7222

php cURL iis 6.0 windows server 2003

I am having an issue setting up cURL with IIS 6.0, Windows Server 2003, PHP 5.2.6

I have installed to C:\PHP

set PHPRC = C:\PHP\php.ini

copied ssleay32.dll and libeay32.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

C:\PHP is in PATH

still getting

Fatal error: Call to undefined function curl_init()

Upvotes: 1

Views: 3998

Answers (3)

joshjdevl
joshjdevl

Reputation: 7222

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

Upvotes: 2

Greg
Greg

Reputation: 321766

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

Upvotes: 1

Randy
Randy

Reputation: 4023

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.

Upvotes: 3

Related Questions