- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 58 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Help when putting footer on custom module [ ]
Author
Message
piazafan31
Guest
Posted:
Thu Jun 12, 2003 8:25 pm
i put this code in a custom module
Code:
<?
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
if(!isset($mainfile)){
include("mainfile.php");
}
include("header.php");
echo "<CENTER><H1>LocoMono</H1></CENTER>"
include(footer.php");
?>
and then i get this error
Parse error: parse error, unexpected T_INCLUDE, expecting ',' or ';' in /home/chimpinc/public_html/locomono/modules/LocoMono/index.php on line 15
but if i take the footer off it works fine this also happens when i put the opentable() command
thanks
Cyberclark
Elite Nuker
Joined: Nov 20, 2002
Posts: 237
Posted:
Fri Jun 13, 2003 3:50 pm
Two things I notice wrong off the bat.
Should be a ; at the end of your echo line
and I think you left out a " before footer.
So the working code should look like:
Code:
<?
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
if(!isset($mainfile)){
include("mainfile.php");
}
include("header.php");
echo "<CENTER><H1>LocoMono</H1></CENTER>";
include("footer.php");
?>
Good Luck and Happy Nuking!
Guest
Posted:
Fri Jun 13, 2003 5:41 pm
thank you very much
i really need to check my code before i post
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum