Something similar appears in PHP programs
Parse error: syntax error, unexpected end of file in XXXXXXXX on line xx
The error.
If you find nothing wrong with the SYNTAX of PHP itself. Short tags may be used, such as:
< ?}?>
The solution to this problem is:
You can set short_open_tag = On
in php.ini
———————————————————
What is short_open_TAG?
Parse error: syntax error, unexpected end of file in XXXXXXXX on line xx
The error.
If you find nothing wrong with the SYNTAX of PHP itself. Short tags may be used, such as:
< ?}?>
The solution to this problem is:
You can set short_open_tag = On
in php.ini
———————————————————
What is short_open_TAG?
determines whether the abbreviated form of the code start flag is allowed (< ??> ). If you want to use PHP in conjunction with XML, you can disable this option to embed < ?xml ?> . Otherwise you can output it through PHP, for example: < ?php echo ‘< ?The XML version = “1.0” ‘; ?> . If disabled, you must use the full form of the PHP code start flag (< ?php ?> ).
note: this instruction also affects the abbreviation < ?=, and < ?Echo equivalence. Using this abbreviation requires that the value of short_open_TAG be On.