$file = "http://www.books.com.tw/";
$html = "";
$fo = fopen($file, "r");
while (!feof($fo)) {
$html .= fgets($fo);
}
fclose($fo);
echo $html;
$TxtFileName = "test.html";
$File = fopen($TxtFileName,"w");
if ($File){
fwrite($File,$html);
fclose($File);
}
沒有留言:
張貼留言