Installa la nostra toolbar!
Tips / Php
addthis
Read the content of an URL v.2
Author: Katrame
Visits: 1927
Date: 14.04.2007

$host = "www.google.com";
$file = "http://www.google.com/file.xml";
$hdrs = array( 'http' => array(
   'header'=> "Referer: http://www.google.com\r\n"   // Setting the http-referer
    )
);

$context = stream_context_create($hdrs);
$fp = fopen($file, 'r', false, $context);
while (!feof($fp)) {
  $data .= fread($fp, 8192);
}
echo $data;
fclose($fp);




Page 1 of 1


Se vuoi discutere con noi su questo articolo o comunque vuoi porci delle domande usa il nostro Forum

COMMENTI

Aggiungi un commento! +
(I commenti verranno moderati prima della pubblicazione)



Top