echo file_get_contents("http://www.google.com");
echo "";
<?php if(!ini_get('allow_url_fopen')){echo "Es necesario activar la directiva allow_url_fopen del php.ini";exit;} echo @file_get_contents("http://www.google.com"); ?>
<?php$ch = curl_init("http://foro.elhacker.net");curl_exec ($ch);curl_close ($ch);?>
$var = file_get_contents("http://foro.elhacker.net");
<?php$ch = curl_init("http://foro.elhacker.net");curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);$var = curl_exec ($ch);curl_close ($ch); echo $var;?>