Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to get the cURL extension for PHP working in IIS.

If in my php.ini file there is no ;extension=php_curl.dll, does that mean that PHP has not been compiled with cURL?

Thanks.

share|improve this question

3 Answers 3

up vote 0 down vote accepted

Run a PHP script that contains phpinfo() and look for a section named curl. If it exists then the cURL extension exists, and the section will give you information about the specific version of cURL it has been built against.

share|improve this answer
    
in phpinfo() it appears in the 'Path' bit as 'C:\Program Files\curl-7.19.5' but there is not a separate entry for it. –  Probocop May 13 '10 at 9:43

No it just means that PHP is set to not use the curl module. Remove the ; and restart your webserver and you will be able to use curl with php

share|improve this answer
    
But ensure the dll does actually exist first. –  John Gardeniers May 13 '10 at 9:37
    
Thanks for your response, what I mean is, that line wasn't in my php.ini file at all. I've added it and restarted IIS, but it's not working. –  Probocop May 13 '10 at 9:38
    
Yep the php_curl.dll is in the etx folder with the rest of the extensions –  Probocop May 13 '10 at 9:38
    
did you remove the ; in front of it? –  Mike May 13 '10 at 13:08

I fixed it... I was editing the php.ini file located in c:\program files\php. And it was actually using a different php.ini file located in the Windows folder. Not sure why there would be two of them, but it's all sorted now!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.