当试图解析html时使用简单的html解析器,我没有得到任何回应。这里是代码:
$html = new simple_html_dom();
$html->file_get_html('http://thepiratebay.se/search/1080p/0/7/207');
$html
什么也没有返回。但是,当我使用此网址做相同的事情时,http://thepiratebay.se/browse/207/0/7
,我得到了正常的回应。
我真的不明白为什么,因为网址完美。
A var_dump
on $html
返回bool (false)
。
我有PHP 5.3.1和allow_url_fopen
是在php.ini中
我很抱歉,但我没有真正在这个问题笑...你得到任何形式的任何错误? – Seer 2013-03-26 12:18:45