Search in This Blog

Parse error syntax error unexpected end of file

Problem:

While working with PHP you may get this error
"Parse error: syntax error, unexpected end of file"

Solution:

If you missed the proper php tag <?php and used as below tag without configuration short tag
<?

?>
Then you will get the "Parse error: syntax error, unexpected end of file" error message

Example:

So replace below tag
<?
?>

To

<?php

?>
Previous
Next Post »