$url="http://www.google.com"; $gestor = fopen($url, "r"); $cont=""; while (!feof($gestor)) { $bufer = fgets($gestor, 4096); $cont = $cont.$buffer; echo $cont; } fclose($gestor);