这是php manual的原话:将 web 页面读入字符串。参见 file_get_contents()。
$html = implode('', file ('http://www.example.com/'));为什么我用这段代码不行的?1.<?php
2.
3.var $html;
4.$html = implode('', file ('http://www.baidu.com/index.html'));
5.echo '$html';?>错误提示:Parse error: parse error in d:\usr\www\ip\ip.php on line 3