【发布时间】:2012-02-01 17:26:46
【问题描述】:
我正在阅读 PHP 页面的源代码。该页面中有一个隐藏的输入字段<input type="hidden" name="session_id" value=。
$url = 'URL HERE';
$needle = '<input type="hidden" name="session_id" value=';
$contents = file_get_contents($url);
if(strpos($contents, $needle)!== false) {
echo 'found';
} else {
echo 'not found';
}
我想读取那个隐藏字段的值。
【问题讨论】: