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 will find the file according to the prompt, and the last line of error is always prompted in the error. I found the last line and found it
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. In addition, 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.