我使用file_get_content來訪問rss。使用file_get_contents
我嘗試使用:
3210結果是
頁的內容和我嘗試用
echo file_get_content("http://hcm.24h.com.vn/ban-tre-cuoc-song/noi-doi-de-quyen-ru-chang-c64a418748.html");
結果是一個空白頁。爲什麼我無法得到它?這個頁面不允許file_get_contents函數?對不起,我英語不好,請允許我的問題。謝謝
這可能是一個網絡問題,或託管站點阻止您的訪問(從您的網絡或ip) – ajreal
這不是一個RSS源。 RSS源位於http://www.24h.com.vn/upload/rss/bantrecuocsong.rss。看看是否http://stackoverflow.com/questions/5975213/how-can-i-download-using-php-a-xml-file-redirected-in-some-weird-way/5975340#5975340解決您的問題。 – Gordon