Error : parse error: syntax error, unexpected end of file
Untuk mengatasi error yang muncul seperti "parse error: syntax error, unexpected end of file" ketika mengeksekusi suatu file PHP, cobalah untuk menghindari tag pembuka script PHP dengan hanya tag seperti ini "<?" akan tetpi tulislah lengkap seperti ini "<?php".
Contohnya seperti ini :
<?
echo "Hello Word";
?>
Cobalah tulis seperti ini :
<?phph
echo "Hello Word";
?>
No comments:
Post a Comment