解答:
方法1
$readcontents = fopen("http://www.baidu.com","rb");
$content = stream_get_contents($readcontents);
fclose($readcontents);
echo $contents;
方法2
echo file_get_contents("http://www.baidu.com");
</br>
</br>
解答:
方法1
$readcontents = fopen("http://www.baidu.com","rb");
$content = stream_get_contents($readcontents);
fclose($readcontents);
echo $contents;
方法2
echo file_get_contents("http://www.baidu.com");
</br>
</br>