十分不稳定,怎么解决?急死了,谁能回答十分感谢
[b]问题补充:[/b]
好的,十分感谢。
可是它把错误信息也获取到了:
Warning: file_get_contents(http://bbs.phpchina.com/rss.php?fid=17&auth=Lg37Y6QgN4fqGp%2F7E2hHFGk%2BoZG2VLcc5g) [function.file-get-contents]: failed to open stream: HTTP request failed! in E:\AppServ\www\demoWeb\xmlRead2.php on line 65
Warning: file_get_contents(http://bbs.phpchina.com/rss.php?fid=17&auth=Lg37Y6QgN4fqGp%2F7E2hHFGk%2BoZG2VLcc5g) [function.file-get-contents]: failed to open stream: HTTP request failed! in E:\AppServ\www\demoWeb\xmlRead2.php on line 65
Array ( [0] => AminoAcid Object ( [title] => 鏌ヨ鍔熻兘,浠d,鍚嶇О,鏃堕棿鏌ヨ鏃跺垽鏂棶棰� [link] => http://bbs.phpchina.com/viewthread.php?tid=128263 [description] => [category] => 闂瓟姹傚姪鍖� [author] => winver [pubDate] => Mon, 15 Jun 2009 08:00:19 +0000 ) [1] => AminoAcid Object ( [title] => smarty涓繍鐢╦s鐨勯棶棰� [link] => http://bbs.phpchina.com/viewthread.php?tid=128262 [description] => [category] => 闂瓟姹傚姪鍖� [author] => dayi4ban [pubDate] => Mon, 15 Jun 2009 07:53:31 +0000 ) [2] => AminoAcid Object ( [title] => jQuery Radio 鐨勫彇鍊�,Safari 涓柟娉曪紵 [link] => http://bbs.phpchina.com/viewthread.php?tid=128258 [description] => [category] => 闂瓟姹傚姪鍖� [author] => Rainstorm [pubDate] => Mon, 15 Jun
如何只得到xml内容,而得不到得错误信息输出则滤过呢??
得到的是string还是array,如何传值给js再处理呢??