<?php
$web = "http://www.163.com/test.htm";
$fp = @fopen($web,"r");
if(!$fp){echo "can't open the website <font color=red>$web</font>";exit;}
while (!feof ($fp)) {
$buffer .= fgets($fp, 4096); // 应向$buffer追加数据
}
//fputs($buffer); // fopen("http://.... 不支持远程写入,只能保存在本地
fclose($fp);
?>
$web = "http://www.163.com/test.htm";
$fp = @fopen($web,"r");
if(!$fp){echo "can't open the website <font color=red>$web</font>";exit;}
while (!feof ($fp)) {
$buffer .= fgets($fp, 4096); // 应向$buffer追加数据
}
//fputs($buffer); // fopen("http://.... 不支持远程写入,只能保存在本地
fclose($fp);
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货