Sone Work

one work - 记录自己的知识增长的网站

PHP获取网页内容的几种方法

方法1: 用file_get_contents以get方式获取内容<?php   $url='http://www.domain.com/?para=123';   $html= file_get_contents($url);   echo$html;   ?>方法2:用file_get_contents函数,以post方式获取url<?php   $url= '
<< 1 >>