what is cURL in php

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

Example :

<?php
$url = “www.example.com”; // Desired URL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$returned = curl_exec($ch);
curl_close ($ch);
echo $returned;
?>

5 thoughts on “what is cURL in php”

  1. My sis told me about your site and how nice it’s. She’s correct, Im truly impressed with the writing and slick design. It appears to me you’re just scratching the floor when it comes to what you may accomplish, but you’re off to an amazing start!

  2. I ponder how you got so good. HaHa! This is actually a fascinating blog, numerous things which I am able to wind up in. One thing Among the best to talk about that the design is so perfect! You certainly know how to get yourself a girls attention! Im glad that youre here. I think that Ive learned new things because they are here.

  3. I?m impressed, I must say. Actually not often do I encounter a weblog that?s both educative and entertaining, and let me let you know, you could have hit the nail on the head. Your concept is outstanding; the issue is something that not enough persons are speaking intelligently about. I am very happy that I stumbled across this in my seek for one thing regarding this.

  4. I’ve been exploring for a bit for any high-quality articles or weblog posts on this sort of area . Exploring in Yahoo I eventually stumbled upon this web site. Studying this information So i am satisfied to convey that I’ve a very
    just right uncanny feeling I came upon exactly what I needed.
    I most unquestionably will make sure to do not omit this web site
    and give it a glance regularly.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>