When I'm viewing the source code of this page http://ift.tt/1xlfqNv , it shows the source code as expected, a clean xml file
However when I'm trying with this :
<?php
$content = file_get_contents('http://ift.tt/1xlfqNv');
echo $content;
?>
I'm getting this horrible thing : http://ift.tt/15h1OvQ i just don't get what just happened.
file_get_contents() works fine with any other simple page such as www.example.com, just not that xml file.
Any help appreciated, thanks !
No comments:
Post a Comment