现在位置 >首页 > 所有关于远程读取的文章
0+
PHP远程读取并显示 HTML标记 < ?php $msgfile = “http://www.yqyzj.cn”; $fpmsg = fopen($msgfile,”r”); $rstr = fgets($fpmsg); while(!feof($fpmsg)){ echo $rstr; $rstr = fgets($fpmsg); } fclose($fpmsg); ?> 或者 < ?php echo file_get_contents (“http://www.yqyzj.cn”) ; ?> <?php $list = file_get_contents(‘http://www.yqyzj.cn’); print_r($list); ?> PHP远程读取并执行 PHP标记 < ?php $msgfile = “http://127.0.0.1:801/1/info.txt”; $fpmsg = fopen($msgfile,”r”...
阅读全文
×
腾讯微博