All pastes #392097 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-12 17:41 UTC
rendered paste body
<?PHP

ini_set('display_errors', 1);

error_reporting(E_ALL);

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "http://www.google.com/");

curl_setopt($ch, CURLOPT_HEADER, true);

curl_setopt($ch, CURLOPT_NOBODY, true);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$data = curl_exec($ch);

curl_close($ch)

echo $data;

?>