最后的分了 。Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';是什么意思解决思路

WBOY
Release: 2016-06-13 13:13:46
Original
1045 people have browsed it

最后的分了 。Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';是什么意思
最后的分了   。Parse   error:   syntax   error,   unexpected   T_OBJECT_OPERATOR,   expecting   ', '   or   ';是什么意思

$doc=new   DOMDocument();
$doc-> load( "admin/mainconfig.xml ");
echo   $doc-> getElementsByTagName( "t ")-> item(0)-> nodeValue;

?>

出事的网页就这么短
上面的错误是提示在第三行

我本地上运行可以,但是放到租来的服务器上就不行了
郁闷死了

xml   是下面的


t2
mffff
k
1
1
1
0



------解决方案--------------------
接着顶!
------解决方案--------------------
你在本地没有问题,那就应该不是程序问题了
把服务器的文件删了再传一次看看,因为可能会在传输过程中出现丢字符的问题!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template