2015-12-07 96 views
-1

你好我正在解析這個飼料,似乎無法得到它的工作PHP解析器RSS - - 不工作

<?php 
$url = "http://insite.unthsc.edu/dailynews/category/campus-news/feed/"; 
$xml = simplexml_load_file($url); 
print_r($xml); 
?> 

我得到this目前,當我輸出前 我爲以前做過其他飼料和XML文件,但不能爲我的生活找出爲什麼它不是這個時候工作。

感謝

回答

0

的問題是正確的錯誤消息:你需要加載XML資源之前驗證

在隱身窗口中打開the link,或

curl http://insite.unthsc.edu/dailynews/category/campus-news/feed/ 

,你會看到PHP看到的東西。