Home > Backend Development > PHP Tutorial > PHP error Parse error: syntax error, unexpected end of file in test.php on line 12 solution_PHP tutorial

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

WBOY
Release: 2016-07-13 10:24:11
Original
1266 people have browsed it

Today when I was writing a PHP program, I always got this error: Parse error: syntax error, unexpected end of file in *.php on line *. Then I followed the prompts to find the file, and the error always appeared. It prompted that there was an error in the last line. I found the last line and found that it was . I was confused. What could be wrong with this? It took me a long time to find the problem and share it.

? php Your PHP statement?>, I wrote it like this: . Of course, it is also good to write it like this, but I did not enable short tags in php.ini, so this error occurred. Also note that there is a space after

http://www.bkjia.com/PHPjc/825528.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/825528.htmlTechArticleToday I always get this error when writing PHP programs: Parse error: syntax error, unexpected end of file in *.php on line *, then I followed the prompts to find the file, and then...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template