file_get_content를 사용하여 rss를 사용합니다. 빈 페이지가use file_get_contents
echo file_get_contents("http://vnexpress.net/gl/xa-hoi/2011/11/mot-so-bo-truong-the-hien-su-ne-tranh-trach-nhiem/");
결과 페이지
의 내용입니다 그리고
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