PHP

Using cURL in PHP

PHP/CURL is a binding that uses libcurl. It means that the PHP team has written a glue layer for PHP that speaks to the underlying libcurl. That layer, the binding, is what we call PHP/CURL and that is what offers the functions named curl_* within the PHP language for you. The PHP/CURL binding is written, maintained and being provided by the PHP team and you will not find any binaries, DLLs or other packages for it on this site.

Download cURL

You can download cURL by going to the cURL website and download the zip file of cURL dlls. Once you have the dlls you are able to install these on your apache web server.

Download cURL

On windows apache server it’s easy to install PHP extensions simply move the extensions into the php/ext folder on the server. Open the php.ini file and add the following to the extension area extension=php_curl.dll

Examples Of Using cURL

To use cURL in PHP use the following example code

The best use of the cURL is to be used to get data from other domains, which can be used to get your social media followers, get the amount of times an article is shared etc.

Here are a couple more examples of what you can do with cURL.

Back to top ^

Join Paulund

  • Get access to 100s of premium tutorials and downloadable content
  • Members content consists of Premium WordPress plugins, CSS packages, jQuery packages, tutorial demo files and templates for 100s of web development tutorials
  • In-depth development tutorials
  • Priority tutorial requests
  • Priority email development support
  • No ads

Here at Paulund you'll find Web Development tutorials and snippets focusing mainly on PHP, WordPress and CSS. Members will get access to premium tutorials that go into more detail about development with these languages. You will also get access to downloadable premium content based on the tutorial.

Join Paulund

Leave a Reply

Your email address will not be published. Required fields are marked *