PhpParseerror: syntaxerror, unexpectedT_STRING. how can this problem be solved?
Source: Internet
Author: User
PhpParseerror: syntaxerror, unexpectedT_STRINGParseerror: syntaxerror, unexpectedT_STRING, expectingT_OLD_FUNCTIONorT_F php Parse error: syntax error, unexpected T_STRING
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in D: \ inetpub \ vhosts \ jszy.hebut.edu.cn \ httpdocs \ admin \ common \ mysql. class. php on line 11
The code for Line 2 is:
Private $ host;
How can this error be reported? is the php version incorrect?
------ Solution --------------------
Private is available only after php5
No. you have php4, right?
For php5, post the first 11 lines of code.
------ Solution --------------------
Specifically, const is available only after 5.3.
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