Home > PHP > what is cURL in php

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;
?>

EmailFacebookLinkedInMySpaceDiggTumblrStumbleUponShare
Beginner's Guide....
Categories: PHP Tags: ,
  1. September 8th, 2011 at 21:19 | #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. October 7th, 2011 at 03:16 | #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. October 9th, 2011 at 11:43 | #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. August 24th, 2012 at 18:00 | #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.

  5. Corina
    September 16th, 2012 at 05:02 | #5

    It’s very easy to find out any topic on net as compared to books, as I found this piece of writing at this web site.

  1. No trackbacks yet.
You must be logged in to post a comment.

Switch to our mobile site