What is cURL in PHP?

They have: 14 posts

Joined: Aug 2008

Please anybody tell me about cURL in PHP.

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

cURL is a library that allows PHP applications to communicate with other servers over several protocols.

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

The short answer

PHP has a very powerful library of calls that are specifically designed to safely fetch data from remote sites. It's called CURL.

Find out more here

They have: 1 posts

Joined: Dec 2008

your xampp installation most likely already has curl support built-in. You just have to turn it on. It's not difficult at all. You can ignore all the comments about recompiling with curl support and so on. That's not necessary for Windows versions of PHP.

Find your php.ini file (probably in xampp\php and open it in notepad or another plain text editor

search for the line that says:
;extension=php_curl.dll

remove the semicolon from the beginning of the line.

save the file

restart apache

check a phpinfo() program to see if you now have curl support listed.

In a standard xampp build, this is all you have to do. If you installed apache and PHP in another way, you might need to move some dlls to the windows\system directory.
(libeay32.dll and ssleay32.dll)

Best of luck to you.

{advertising removed by moderators}

pr0gr4mm3r's picture

He has: 1,502 posts

Joined: Sep 2006

Find out more here

You just couldn't resist, could you?

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.