This article mainly introduces the PHP error Parseerror: syntaxerror, unexpectedendoffileintest. phponline12 solution. For more information, see
This article mainly introduces the PHP error Parse error: syntax error, unexpected end of file in test. php on line 12 solution. For more information, see
When writing a PHP program today, the following error always occurs: Parse error: syntax error, unexpected end of file in *. php on line *, then I find the file according to the prompt, and the error always prompts the last line of error. I find the last line and find it dizzy. What is the error, it takes a long time to locate the problem and share it with you.
The cause of this error is a syntax error. It must have been caused by irregular writing of the PHP program. I later read it one by one and found that the PHP statement identifier was wrong, normally, it should be like this: <? Php Your PHP statement?>, I wrote it like this: <? Your PHP statement?>, Of course, writing this is good, but I didn't enable the short tag in php. ini, so this error occurs. Pay attention to it. <? There is a space behind php. This error will also occur if you do not write it. Although this error is accidental, it is still difficult to find it. Please pay attention to it.