Code Snippets Php

//google
$curl = curl_init('http://www.google.com/');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
curl_exec($curl);
//dump information about the
print("STATUS CODE: " . curl_getinfo($curl, CURLINFO_HTTP_CODE) .'
');
?>