PHP Parse error:syntax Error, unexpected t_string, how to handle

Source: Internet
Author: User
Tags parse error
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\vhost s\jszy.hebut.edu.cn\httpdocs\admin\common\mysql.class.php on line 11



The 11th line of code is:

Private $host;



How can it be reported that this is the wrong version of PHP?


------Solution--------------------
Private only after the PHP5.
No, you're php4, right?
If it is php5, please post the first 11 lines of code
------Solution--------------------
To be exact, the const is only after 5.3.
  • 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.