Parse Error, Unexpected '}'
- Forums
- Scripts
- Parse Error, Unexpected '}'
If You Are Getting An Error On Your Php Scripts That Say Parse Error, Unexpected '}' We Might Be Able To Give You A Solution [2781], Last Updated: Mon Jun 24, 2024
Webune Tutorials
Wed Dec 02, 2009
0 Comments
412 Visits
hello,
welcome to webune web hosting. this is our support section.
if you have web hosting with us, you probably might have started creating scripts in PHP. as a beginner, you will encounter many PHP errors along the way. one of them you might see for example:
Parse error: parse error, unexpected '}' in var/www/webs/forums/categories.php on line 19
so how do you fix this error.
the most likely cause of this error is because you did not end your line with the semi-colon
for example, you will get this error if you have this code:
<?php echo 'hi' ?>
to fix you need to have this code like this:
<?php echo 'hi'; ?>
so in order to stop generating this error make sure you end your lines coreectly