使用file_get_contents

I use file_get_content to leech rss.

I try use:

echo file_get_contents("http://vnexpress.net/gl/xa-hoi/2011/11/mot-so-bo-truong-the-hien-su-ne-tranh-trach-nhiem/");

Result is content of page

And I try use

echo file_get_content("http://hcm.24h.com.vn/ban-tre-cuoc-song/noi-doi-de-quyen-ru-chang-c64a418748.html"); 

Result is a blank page. why I can't get it? this page not allow file_get_contents function? sorry I bad english, please allow my question. thanks

You're missing a s. It should be

echo file_get_contents("http://hcm.24h.com.vn/ban-tre-cuoc-song/noi-doi-de-quyen-ru-chang-c64a418748.html");

Try using file_get_contents instead of file_get_content.

First of all it's file_get_contents, not file_get_content. Secondly it's not going to work with a http link.

http://vnexpress.net/gl/xa-hoi/2011/11/mot-so-bo-truong-the-hien-su-ne-tranh-trach-nhiem/

should be something like

/home/48564568/public_html/gl/xa-hoi/2011/11/mot-so-bo-truong-the-hien-su-ne-tranh-trach-nhiem/

depending on your server.

To find what the link should be, try to include a nonexisting file like so

include(somethingrandom.php);

and you will receive an error notice that /the/path/you/need/somethingrandom.php doesn't exist.

First of all it's file_get_contents, not file_get_content. Secondly it's not going to work with a http link. http://truyen-cuoi.net/