PHP Error Parse Error:syntax error, unexpected end of file into test.php on line 12 workaround _php Tips

Source: Internet
Author: User
Tags parse error php error

This is always the error in writing PHP programs today: Parse Error:syntax error, unexpected end of the file in *.php on line *, and then I just follow the prompts to find the file, and then always prompt the last line error , I found the last line found is

The reason for this error is the syntax error, it must be written by the PHP program is not the norm, I later found that the PHP statement identifier is wrong, the normal situation should be such: <?php your PHP statement? I wrote this: Your PHP statement, of course, this is also good, but I did not open the php.ini in the short label, so it caused this error, and also note that <?php behind a space, if not write will also appear this error, although this error is inadvertently, But sometimes it's hard to find out, let's pay attention.

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.