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

Source: Internet
Author: User
Tags parse error php error

There are always errors in writing PHP today: Parse error:syntax error, unexpected end of file in *.php on line *, then I follow the prompts to find the file, and then always prompt for the last line error , I found the last line found is

The cause of this error is a syntax error, it is certainly the PHP program written by the non-standard, I later found that the PHP statement identifier is wrong, the normal situation should be this: <?php your PHP statement?, I wrote this: < Your PHP statement?, of course, it is good to write, but I did not open the php.ini in the short label, so it caused the error, in addition to note that there is a space behind <?php, if not write will also appear this error, although this error is inadvertently, But sometimes it's hard to find out, so let's take a look.

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

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.