我試圖讓簡單的HTML DOM網站的內容如下:無法獲取網站的HTML,獲得302
<?php
include_once('../simple_html_dom.php');
$html = file_get_html('http://www.opaltransfer.com/en');
echo($html);
?>
當我在我的本地運行的一切這工作正常,但是當我試圖在我正在運行的遠程服務器上運行它
Found
The document has moved here.
爲什麼?我能做些什麼才能使它起作用?在此先感謝
將您的網站重定向? – Justinas
投票重複,因爲'simple_html_dom'在內部使用'file_get_contents'。所以這[回答](http://stackoverflow.com/a/6009316/697154)應該有所幫助。 – Yoshi