nblackwood Posted September 7, 2009 Share Posted September 7, 2009 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();?> Quote Link to comment Share on other sites More sharing options...
Alex Posted September 7, 2009 Share Posted September 7, 2009 This is often caused by forgetting to close a curly brace }. Maybe somewhere higher in your code one isn't being closed properly. Quote Link to comment Share on other sites More sharing options...
bundyxc Posted September 7, 2009 Share Posted September 7, 2009 Try indenting your loops/conditionals. It will make finding these errors much easier. If you can't find the error, post your full script. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 7, 2009 Share Posted September 7, 2009 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. Quote Link to comment Share on other sites More sharing options...
bundyxc Posted September 7, 2009 Share Posted September 7, 2009 Didn't realize how much code we were talking about. Thanks for saving me there PFMaBiSmAd. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.