Archive

Posts Tagged ‘file_get_contents’

One Method to Bypass The Bug #11058 of PHP

August 8th, 2009 Iron_Feet 2 comments
分享家:Addthis中国

最近接触PHP很多,由于PHP也就接触了才一年,因此遇到了不少问题,其中当时让我比较头疼是一个因为PHP自身的Bug而引起的麻烦。

开始我是想抓取一个页面的源代码:

<?php
$content = file_get_contents("http://www.iron-feet.cn/");
echo $content;
?>

很简单的代码,当时觉得肯定不会有问题的,但是在我[......]

Read more