Jump to content

unexpected error [php]


nblackwood

Recommended Posts

When i try to run an install script, i get this error:

 

Parse error: syntax error, unexpected $end on line 2308

 

The problem is that line 2308 is the last line and it's blank. To me, the code looks sound, but here's the code at the end.

 

 

 

<Table CellSpacing="1" CellPadding="0" width="600" bgcolor="black"><Tr><Td><Table Border=0 CellSpacing="1" CellPadding="4" width="600" class=mes>

<Tr bgcolor="<?=COLOR3?>" align=center><Td colspan=2><?=$y[66]?></td></tr>

 

<Tr bgcolor="<?=COLOR4?>" align=center><td><?=$y[66]?></td><td><span class=ok><?=$y[67]?></span></td></tr>

 

<Tr bgcolor="<?=COLOR1?>" align=center><td><?=$y[68]?></td><td><a href="<?php echo C_URL.'/admin.php';?>" target="_blank">

<?php echo C_URL.'/admin.php';?></a></td></tr>

<Tr bgcolor="<?=COLOR4?>" align=center><td><?=$y[69]?>

</td><td><a href="<?php echo C_URL.'/index.php';?>" target="_blank"><?php echo C_URL.'/index.php';?></a></td></tr>

<Tr bgcolor="<?=COLOR1?>" align=center><td><?=$y[70]?></td><td><span class=false><?=$y[71]?></span></td></tr></Table></td></tr></Table>

 

<?php

vars_write("include/options.inc.php","C_MAINTENANCE_MODE","0");

break;  ?>

<?php die();?>

Link to comment
https://forums.phpfreaks.com/topic/173449-unexpected-error-php/
Share on other sites

DON'T post all 2300 lines of your script. No one here is going to look at or look through that much code to find out where you are missing a closing element in your php code.

 

You either have a missing } or missing quote somewhere or it might simply be because you are using short open tags and a } you do have is not being seen as php code.

 

If you have 2300 lines of repetitious code that looks like that, you have missed the point of using a server side scripting language to dynamically produce the content on a page instead of hard coding that page.

Link to comment
https://forums.phpfreaks.com/topic/173449-unexpected-error-php/#findComment-914318
Share on other sites

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.