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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.