0
我使用了一個簡單的html dom解析器,它不適用於某些網站。簡單的Html Dom解析器不適用於這些網站
include_once 'simple_html_dom.php';
$html=file_get_html('http://www.lapenderiedechloe.com/');
這會導致這樣的錯誤。
警告:的file_get_contents(http://www.helloitsvalentine.fr/):未能 打開流:在 ˚F無效參數:\ WAMP \ WWW \工具\ simple_html_dom.php上線75"
和
無法解析服務器的DNS地址
這裏是一些s它不起作用。
http://www.lapenderiedechloe.com/
http://www.estelleblogmode.com/
誰知道解決方案?
兩者的file_get_contents( 'http://www.helloitsvalentine.fr/');和file_get_contents('http://www.google.com/');效果很好。 –
對不起,請用這個試試。$ html = file_get_html('http://www.lapenderiedechloe.com/'); –
嘗試與http:// –