這是錯誤:的SimpleXMLElement錯誤,但XML是有效
[01九月2011 8點15分01秒] PHP警告:的SimpleXMLElement :: __構建體()[< REF啊='的SimpleXMLElement .--構造'> simplexmlelement .-- construct]:../domain/feed-yself-tips.php:1:解析器錯誤:預計開始標記,'<'未在/home/domain/public_html/mergedrss.php上找到135行我們可以通過下面的例子來說明如何使用SimpleXMLElement :: Simplexmlelement。 - construct:> simplexmlelement .-- construct]:1f45 in/home/135線上的域名/ public_html/mergedrss.php
[01-Sep-2011 08:15:01] PHP Warning:SimpleXMLElement :: __ construct()[< ah ref ='simplexmlelement .-- construct'> simplexmlelement .-- construct]:^ in/home/domain /public_html/mergedrss.php on line 135
[01-Sep-2011 08:15:01] PHP致命錯誤:在/ home/domain中帶有消息'String無法解析爲XML'的未捕獲異常'異常' /public_html/mergedrss.php:135
堆棧跟蹤: #0 /home/domain/public_html/mergedrss.php(135): SimpleXMLElement->__construct('.../domain...', 0, true)
#1 /home/domain/public_html/mergedrss.php(57): MergedRSS->__fetch_rss_from_url('.../domain...')
#2 /home/domain/public_html/feed.php(21): MergedRSS->export(false, true, 15)
#3 {main}
thrown in /home/domain/public_html/mergedrss.php on line 135
沒有實際的文件就不可能分辨出來。 – VolkerK
我使用類MergedRSS,這是錯誤行:\t私有函數__fetch_rss_from_url($網址){ \t \t //創建新的SimpleXMLElement實例 \t \t $ SXE =新的SimpleXMLElement($網址,空,真); \t \t return $ sxe; – user923076