1、 file_get_contents获取 [php] view plain copy $url="http://www.baidu.com/"; $fh= file_get_contents('http://www.hxfzzx.com/news/fzfj/'); echo $fh; 2、使用fopen获取网页源代码 [php] view plain copy