PHP Parse error:syntax Error, unexpected end of file

Source: Internet
Author: User
Tags parse error
When using XAMPP WordPress, when following the new theme, the following error occurs:

Parse error:syntax error, unexpected end of file:

Then I was prompted to find the file, and then the error always prompt the last line error, I found the last line found that PHP did not end normally, that is

?>

Or

?>

Added after still reported the same error, find a long time to find the problem is to open the PHP short tag .

in the php.ini file, the specific practice is Find Short_open_tag

Modified to Short_open_tag=on, if it is already on, it means that the short label has been opened, no need to set the



The above describes the PHP Parse error:syntax error, unexpected end of file, including the aspects of the content, I hope to be interested in PHP tutorial friends helpful.

  • 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.