Are you getting this error:
Fatal error: Call to undefined function curl_init() in C:\myfile.php on line 100
A quick overview on how to get the php_curl.dll working on IIS. This works with PHP 5.x on Windows. Most likely you did not install the CURL extension when you first installed PHP on your machine. Below is the easiest method to install any missing extensions (like CURL):
- Go to Add/Remove Programs in Control Panel, Find the PHP 5 installation in the list and click Change.
- When the installer comes up, click Change
-
Find Curl in the list of extensions and click OK to save and finish the installation
- Restart IIS (from command Prompt, type “iisreset”). Now curl should be working for you.
This is much easier that having to find the dll yourself and modifying the php.ini file.
March 14th, 2012 at 9:35 am
A thousand times thank you! You saved me from a headache and hours of after hours work.
June 6th, 2012 at 1:06 am
What if i’m not using installer to install php, is there any other way?
February 21st, 2013 at 5:30 am
I don’t use installer. I saw the file ext\php_curl.dll (or something like this). Uncommented the line extension=php_curl.dll.
php -m now shows curl