Solution In Php - Parse Error: Syntax Error, Unexpected End Of File In
- Forums
- PHP
- Solution In Php - Parse Error: Syntax Error, Unexpected End Of File In
this is my solution fo fixing an error i am getting in my php code script that says Parse error: syntax error, unexpected end of file in [8898], Last Updated: Sat May 18, 2024
php
Wed Dec 31, 1969
0 Comments
169 Visits
Parse error: syntax error, unexpected end of file in index.php on line 84
if you are getting this error, form me the problem was that i was using an old script and the script was using short tags in the php code.
to simply fix this, try changing the short tags to normal php tags.
for example,
on line 84 of my script was the end of my script, that was not where the problem was, it was on this line:
<? echo $results;
as you can see, its a short tag, so just change it to:
<?php echo $results;
hope that works