Pages

Monday, November 19, 2012

Activate CURL in php.ini

I had a project that needs to use CURL, I found everything I need for curl to run thanks to google :) but I keep receiving this kind of notice. 

Notice: Use of undefined constant CURLOPT_SSL_VERIFYHOST - assumed 'CURLOPT_SSL_VERIFYHOST

So I searched more and found that I need to activate the CURL extension.

To activate the CURL extension, you need to locate your php.ini.

I found mine in this location.

 C:\xampp\php -

open the php.ini

then uncomment 

;extension=php_curl.dll

After that, restart your apache service.





No comments:

Post a Comment