php根据URL得到网页内容

php 中根据url来得到网页内容很是的方便,能够经过系统内置函数file_get_contents(),传入url,便可返回网页的内容,好比得到百度首页的内容代码为:php <?php $html = file_get_contents('http://www.baidu.com/'); echo $html; 就能够显示出百度首页的内容,可是,这个函数不是万能的,由于有些服务器会禁用掉这个函
相关文章
相关标签/搜索