【发布时间】:2011-05-16 23:30:24
【问题描述】:
我对 PHP 比较陌生,对 XML 更是如此。
我有一个脚本可以在我的本地主机上完美运行,但是当我尝试将它放在我的服务器上时,我收到了以下消息:
警告:simplexml_load_file() [function.simplexml-加载文件]: http://api.wefeelfine.org:8080/ShowFeelings?display=xml&feeling=happy&returnfields=imageid,feeling,sentence,posttime,postdate,posturl,gender,country,state,city,lat,lon&limit=0&extraimages=20:1:
解析器错误:文档为空 /home2/alsweet/public_html/notalone.php 第 21 行
不工作的代码行是这样的:
// get api feed
$xml = simplexml_load_file('http://api.wefeelfine.org:8080/ShowFeelings?display=xml&feeling=' . $feeling . '&returnfields=imageid,feeling,sentence,posttime,postdate,posturl,gender,country,state,city,lat,lon&limit=0&extraimages=20');
我做错了吗? 我应该与我的托管服务提供商交谈吗?
【问题讨论】: