Return to Snippet

Revision: 17297
at August 31, 2009 01:42 by acosonic


Initial Code
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL,"http://www.google.com");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$contents = curl_exec ($ch);
curl_close ($ch);

Initial URL

                                

Initial Description

                                

Initial Title
grabbing content from URL via CURL to PHP variable

Initial Tags
curl, php

Initial Language
PHP