To determine if the cURL extension is enabled, run the following code on your server:
Success! - If cURL exists and is enabled it should return something that looks like this:
PHP version 4 example successful result:
PHP version 5.1 example successful result (returns an array)
(
[version_number] => 461570
[age] => 1
[features] => 541
[ssl_version_number] => 9465935
[version] => 7.11.2
[host] => powerpc-apple-darwin6.8
[ssl_version] => OpenSSL/0.9.7d
[libz_version] => 1.1.3
[protocols] => Array
(
[0] => ftp
[1] => gopher
[2] => telnet
[3] => dict
[4] => ldap
[5] => http
[6] => file
[7] => https
[8] => ftps
)
)
Failure — if it doesn’t exist you’ll see an error message like this:
Fatal error: Call to undefined function: curl_version() in /path/to/sites/tdavid/php/examples/curl_version.php on line 5
In this case if you have the right access permissions (usually this is root access) you can edit the php.ini file. Here is instructions on how to locate the php.ini file.
You can edit the php.ini on Linux via ssh.

The section of the php.ini that refers to cURL is located in the Windows Extensions section, pictured above.

and what if only a blank page comes up?
source:
on October 4th, 2005 at 9:48 am | #Link CommentIt has to be loaded through your localhost using apache and not directly into the browser. In other words it needs to be loaded using a url like http://localhost/phpinfo.php and not C:/My Documents/phpinfo.php
The file phpinfo.php will need to be put in the localhost root folder which is something like C:\program files\Apache Group\Apache\htdocs\ (if using a Windows machine and depending on your system setup). If you then type in http://localhost/phpinfo.php your page should be parsed and loaded. Good luck.
on November 9th, 2005 at 2:03 pm | #Link Commentor it’s possible that warning messages are on a very high level / disabled. in that case assume you have the error… = no curl
on March 23rd, 2006 at 9:58 am | #Link CommentI made the change to the php.ini file and it still doesn’t work.
on July 7th, 2006 at 4:18 pm | #Link CommentFatal error: Unknown function: curl_version() in C:\Program Files\xampp\htdocs\wordpress\curltest.php on line 2