Diety Dieticheskie-produkty Protsedury Sredstva Uprajneniya Fitnes Gimnastika Yoga Pitanie Tsellyulit Zdorove Krasota

You can save the cURL output as a string for further manipulation.

Following code takes care of:

// create curl resource
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, "http://example.com");
// return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// save output to string
$output = curl_exec($ch);
// close curl resource to free up system resources
curl_close($ch);
Tagged with:
 

One Response to How to save cURL output to string

  1. Jannick says:

    NICE! I love it! 😀

Leave a Reply

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