Home >Backend Development >PHP Tutorial >PHP 读取网页文件

PHP 读取网页文件

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 14:28:49924browse

简介:这是PHP 读取网页文件的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。

class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=337547' scrolling='no'>

                  <p class="sycode">                      <?     php$handle = fopen ("http://www.example.com/", "rb");$contents = "";while (!feof($handle)) {  $contents .= fread($handle, 8192);}fclose($handle);?>                  </p>

                  <p class="sycode">                      <?     php// 对 PHP 5 及更高版本$handle = fopen("http://www.example.com/", "rb");$contents = stream_get_contents($handle);fclose($handle);?>                  </p>


直接上代码了,学技术的,你会懂得

爱J2EE关注Java迈克尔杰克逊视频站JSON在线工具

http://biancheng.dnbcw.info/php/337547.html pageNo:9
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP UTF-8乱码问题Next article:php 类 完整例子