Jump to content

Parse error: syntax error, unexpected $end


VeeDubZ

Recommended Posts

having a bit of trouble when it comes to move split or lock a topic on my phpbb board i keep getting this error

[CODE]Parse error: syntax error, unexpected $end in /home/www/evolutionrpm.co.uk/Forum/modcp.php on line 1368[/CODE]




a txt file of modcp.php can be found [URL=http://"http://www.evolutionrpm.co.uk/forum/modcp.txt"]HERE[/URL]


any help is greatly appreciated as im a total noob to php
Link to comment
https://forums.phpfreaks.com/topic/36098-parse-error-syntax-error-unexpected-end/
Share on other sites

The closing tags should always be [color=green]?>[/color]

If the php_ini settings allow, you can use short tags to open php, so you can use [color=green]<?[/color] instead of [color=green]<?php[/color] but it's never advisable as it's installation specific and makes the code less portable.

Regards
Huggie
Cant you go over the code yourself and find your missing braces? This is not a "do it for me" forum. You may go to the freelancing forum and ask someone there to do it for you...

[code]else
{
if ( $delete )
{
$mode = 'delete';
}
elseif ( $move )
{
$mode = 'move';
}
elseif ( $lock )
{
$mode = 'lock';
}
elseif ( $unlock )
{
$mode = 'unlock';
}

// MOD MODCP EXTENSION BEGIN
    elseif ( $sticky )
    {
        $mode = 'sticky';
    }
    elseif ( $announce )
    {
        $mode = 'announce';
    }
    elseif ( $normalise )
    {
        $mode = 'normalise';
    }
    // MOD MODCP EXTENSION END

else
{
$mode = '';
}
}[/code]

Orio.
or you can try <a href="http://www.mpsoftware.dk/downloads.php">PHP Designer 2007 (Free Version)</a> its a very nice editor which when you open something like a curly brace it automatically writes the closing brace for you, saves you forgetting

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.