我已经尝试了很多方法来尝试获取url的内容,并使用影响输出的哈希值。我真的不知道该如何解释,但这里有一个例子...file_get_contents包含哈希信息
这样做:
echo file_get_contents('test.com/whatever.php?t1=1&t2=2#this');
将返回相同的结果:
echo file_get_contents('test.com/whatever.php?t1=1&t2=2');
即使如果我浏览到它在我的网络浏览器中会有所作为。当然,上面的网址并不是我正在使用的实际网址,但我希望你明白。
事情我已经尝试:
卷曲:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
的file_get_contents:
file_get_contents($url);
FREAD:
//don't know where I put the code.
这些都是我试过的事情,和不要回忆除了这里,你知道下一步该去哪里。我真的不确定这是否可能,但我希望它是。
感谢您的帮助,sh042067。