2
我从RSS源拉:使用simplexml_load_file文件是空的
如果您导航到以浏览器,你会得到一个不错的XML页面。
但是,如果我这样做
simplexml_load_file("the above url");
在PHP
,我得到
1: parser error : Document is empty
1: parser error : Start tag expected, '<' not found in my_file
那么,为什么可以在浏览器中得到,但不是PHP?
如果我这样做file_get_contents("the above url")
函数失败返回FALSE。
很酷的作品,谢谢 –
太好了。欢迎来到这个网站! – limos