The final score. Parseerror: syntaxerror, unexpectedT_OBJECT_OPERATOR, expecting ',' or ';

Source: Internet
Author: User
The final score. Parseerror: syntaxerror, unexpectedT_OBJECT_OPERATOR, expecting ',' or '; what does it mean ;. Parse & nbsp; error: & nbsp; syntax & nbsp; error, & nbsp; u. Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';
The final score. 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;

?>

The webpage is so short
The above error is prompted in the third line

I can run it locally, but it won't work if I put it on a rented server.
Depressed

Xml is the following


T2
Mffff
K
1
1
1
0



------ Solution --------------------
Go to the top!
------ Solution --------------------
If you have no problem locally, it should not be a program problem.
Delete the server file and upload it again, because the character loss problem may occur during transmission!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.