Shade.Alchemist Posted April 6, 2007 Share Posted April 6, 2007 Warning: main(): Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eternalt/public_html/index.php on line 158 I keep on getting that... Any help regarding how to fix it appreciated. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted April 6, 2007 Share Posted April 6, 2007 What's line 158 of index.php? Ken Quote Link to comment Share on other sites More sharing options...
Shade.Alchemist Posted April 6, 2007 Author Share Posted April 6, 2007 <?php include("$id"); ?> Quote Link to comment Share on other sites More sharing options...
per1os Posted April 6, 2007 Share Posted April 6, 2007 Seriously, if you want help post at least 20 lines of code, 10 before the error and 10 after, at the very least. Quote Link to comment Share on other sites More sharing options...
Shade.Alchemist Posted April 6, 2007 Author Share Posted April 6, 2007 sorry... <TR> <TD COLSPAN=6 background="images/ETv2_37.png" WIDTH=455 HEIGHT=3 ALT=""></TD> </TR> <TR> <TD COLSPAN=10 background="images/ETv2_38.png" WIDTH=537 HEIGHT=44 ALT=""></TD> </TR> <TR> <TD COLSPAN=10 class="content" valign="top" background="images/ETv2_39.png" WIDTH=537 HEIGHT=177 ALT=""> <?php include("$id"); ?> </TD> </TR> <TR> <TD COLSPAN=15 background="images/ETv2_40.png" WIDTH=798 HEIGHT=41 ALT=""> </TD> </TR> <TR> <TD COLSPAN=16 background="images/ETv2_41.png" WIDTH=800 HEIGHT=10 ALT=""></TD> </TR> Quote Link to comment Share on other sites More sharing options...
per1os Posted April 6, 2007 Share Posted April 6, 2007 Where is $id being set, it seems like it does not have a value therefore you are trying to include a file with the name of '' (nothing). Quote Link to comment Share on other sites More sharing options...
Shade.Alchemist Posted April 6, 2007 Author Share Posted April 6, 2007 psst How do you check that Quote Link to comment Share on other sites More sharing options...
clown[NOR] Posted April 6, 2007 Share Posted April 6, 2007 well you have to set the $id somewhere. give the $id a value so it has something to include. example: let's say $id is triggered from a link to include about.php <a href="index.php?id=about">About me</a> now you want to set the value of $id. In this example the value will be "about" $id = $_GET['id']; now you need to include the about file include('$id.php'); Quote Link to comment Share on other sites More sharing options...
Shade.Alchemist Posted April 6, 2007 Author Share Posted April 6, 2007 gah, I'm an idiot... I placed $id = $_GET['id']; into lots of random locations in the index.php yet I keep getting this error... Warning: main($id.php): failed to open stream: No such file or directory in /home/eternalt/public_html/index.php on line 160 Warning: main($id.php): failed to open stream: No such file or directory in /home/eternalt/public_html/index.php on line 160 Warning: main(): Failed opening '$id.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eternalt/public_html/index.php on line 160 Quote Link to comment Share on other sites More sharing options...
clown[NOR] Posted April 6, 2007 Share Posted April 6, 2007 can you post the the whole file here? so I can take a look at everything? cuz I'm really confused. but make sure you add inside the CODE tag!!! Quote Link to comment Share on other sites More sharing options...
Shade.Alchemist Posted April 6, 2007 Author Share Posted April 6, 2007 <HTML> <HEAD><link href="style2.css" rel="stylesheet" type="text/css"> <TITLE>Eternal Tales</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> </HEAD> <BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <div align="center"> <TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD background="images/ETv2_01.png" WIDTH=67 HEIGHT=51 ALT=""><a href="link"><img src="images/ETv2_01.png"></a></TD> <TD class="talesnews"background="images/ETv2_02.png" WIDTH=68 HEIGHT=51 ALT=""><a href="link"><img src="images/ETv2_02.png"></a></TD> <TD background="images/ETv2_03.png" WIDTH=58 HEIGHT=51 ALT=""><a href="link"><img src="images/ETv2_03.png"></a></TD> <TD COLSPAN=3 background="images/ETv2_04.png" WIDTH=96 HEIGHT=51 ALT=""> <a href="link"><img src="images/Contactbutton.png"></a></TD> <TD COLSPAN=10 background="images/ETv2_05.png" WIDTH=511 HEIGHT=51 ALT=""></TD> </TR> <TR> <TD COLSPAN=16 background="images/ETv2_06.png" WIDTH=800 HEIGHT=68 ALT=""></TD> </TR> <TR> <TD COLSPAN=10 ROWSPAN=6 background="images/ETv2_07.png" WIDTH=563 HEIGHT=156 ALT=""></TD> <TD COLSPAN=4 class="talesnews" background="images/ETv2_08.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> <TD COLSPAN=2 ROWSPAN=6 background="images/ETv2_09.png" WIDTH=12 HEIGHT=156 ALT=""></TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_10.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_11.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_12.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_13.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_14.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=16 background="images/ETv2_15.png" WIDTH=800 HEIGHT=16 ALT=""></TD> </TR> <TR> <TD COLSPAN=16 class="affiliate" background="images/ETv2_16.png" WIDTH=800 HEIGHT=25 ALT=""> <?php $id = $_GET['id']; ?> <?php include('Edit-WebAff.php'); ?> </TD> </TR> <TR> <TD COLSPAN=16 background="images/ETv2_17.png" WIDTH=800 HEIGHT=28 ALT=""></TD> </TR> <TR> <TD COLSPAN=4 ROWSPAN=7 class="nav" valign="top" background="images/ETv2_18.png" WIDTH=258 HEIGHT=357 ALT=""> <?php include('Edit-Navigation.php'); ?> </TD> <TD ROWSPAN=7 background="images/ETv2_19.png" WIDTH=3 HEIGHT=357 ALT=""></TD> <TD COLSPAN=11 background="images/ETv2_20.png" WIDTH=539 HEIGHT=3 ALT=""></TD> </TR> <TR> <TD COLSPAN=2 background="images/ETv2_21.png" WIDTH=45 HEIGHT=44 ALT=""></TD> <TD background="images/ETv2_22.png" WIDTH=151 HEIGHT=44 ALT=""></TD> <TD background="images/ETv2_23.png" WIDTH=1 HEIGHT=44 ALT=""></TD> <TD COLSPAN=2 background="images/ETv2_24.png" WIDTH=151 HEIGHT=44 ALT=""></TD> <TD background="images/ETv2_25.png" WIDTH=1 HEIGHT=44 ALT=""></TD> <TD background="images/ETv2_26.png" WIDTH=151 HEIGHT=44 ALT=""></TD> <TD COLSPAN=2 background="images/ETv2_27.png" WIDTH=37 HEIGHT=44 ALT=""></TD> <TD ROWSPAN=7 background="images/ETv2_28.png" WIDTH=2 HEIGHT=395 ALT=""></TD> </TR> <TR> <TD COLSPAN=2 ROWSPAN=3 background="images/ETv2_29.png" WIDTH=45 HEIGHT=89 ALT=""></TD> <TD COLSPAN=6 background="images/ETv2_30.png" WIDTH=455 HEIGHT=3 ALT=""></TD> <TD COLSPAN=2 ROWSPAN=3 background="images/ETv2_31.png" WIDTH=37 HEIGHT=89 ALT=""></TD> </TR> <TR> <TD> <a href="link"><img src="images/ETv2_32.png" WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD> <TD background="images/ETv2_33.png" WIDTH=1 HEIGHT=83 ALT=""></TD> <TD COLSPAN=2> <a href="link"><img src="images/ETv2_34.png" WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD> <TD background="images/ETv2_35.png" WIDTH=1 HEIGHT=83 ALT=""></TD> <TD> <a href="link"><img src="images/ETv2_36.png" WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD> </TR> <TR> <TD COLSPAN=6 background="images/ETv2_37.png" WIDTH=455 HEIGHT=3 ALT=""></TD> </TR> <TR> <TD COLSPAN=10 background="images/ETv2_38.png" WIDTH=537 HEIGHT=44 ALT=""></TD> </TR> <TR> <TD COLSPAN=10 class="content" valign="top" background="images/ETv2_39.png" WIDTH=537 HEIGHT=177 ALT=""> <?php include('$id.php'); ?> </TD> </TR> <TR> <TD COLSPAN=15 background="images/ETv2_40.png" WIDTH=798 HEIGHT=41 ALT=""> </TD> </TR> <TR> <TD COLSPAN=16 background="images/ETv2_41.png" WIDTH=800 HEIGHT=10 ALT=""></TD> </TR> <TR> <TD COLSPAN=16 class="footer" background="images/ETv2_42.png" WIDTH=800 HEIGHT=48 ALT=""> <?php include('Edit-Footer.php'); ?> </TD> </TR> <TR> <TD background="images/spacer.gif" WIDTH=67 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=68 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=58 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=65 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=3 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=28 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=17 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=151 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=105 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=46 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=151 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=27 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=2 HEIGHT=1 ALT=""></TD> </TR> </TABLE> </div> </BODY> </HTML> Yeah, not the best of code... Quote Link to comment Share on other sites More sharing options...
clown[NOR] Posted April 7, 2007 Share Posted April 7, 2007 well... the first thing I see is this: <a href="link"> it should be: (make sure the value is the same as the filename of the file you want to include, without the .php) <a href="?id=value"> then.. there's no need to have the $id = $_GET['id']; and include('$id.php'); in two different locations on the site. <?php $id = $_GET['id']; include('$id.php'); ?> i would have done it a whole different way. I would do it more like this: <?php $include = "home.php" $id = $_GET['id']; if (isset($id)) { $include = "$id.php"; } if (!file_exists($include)) { $include = "missing.php"; } require_once($include); ?> The reason I would do it like that is because it opens some more abilities, to add stuff like: if ($id == "gallery") { $include = "gallery/$id.php"; } Quote Link to comment Share on other sites More sharing options...
Shade.Alchemist Posted April 7, 2007 Author Share Posted April 7, 2007 K, now I get this though... Parse error: syntax error, unexpected T_VARIABLE in /home/eternalt/public_html/index.php on line 161 Line 161: $id = $_GET['id']; Damn, this is confusing ._. Quote Link to comment Share on other sites More sharing options...
clown[NOR] Posted April 7, 2007 Share Posted April 7, 2007 and you're using the: <?php $id = $_GET['id']; include('$id.php'); ?> right? Quote Link to comment Share on other sites More sharing options...
Shade.Alchemist Posted April 7, 2007 Author Share Posted April 7, 2007 I used <?php $include = "home.php" $id = $_GET['id']; if (isset($id)) { $include = "$id.php"; } if (!file_exists($include)) { $include = "missing.php"; } require_once($include); ?> Although, with <?php $id = $_GET['id']; include('$id.php'); ?> I get this Warning: main($id.php): failed to open stream: No such file or directory in /home/eternalt/public_html/index.php on line 161 Warning: main($id.php): failed to open stream: No such file or directory in /home/eternalt/public_html/index.php on line 161 Warning: main(): Failed opening '$id.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/eternalt/public_html/index.php on line 161 With line 161 being include('$id.php') Any ideas? Quote Link to comment Share on other sites More sharing options...
clown[NOR] Posted April 7, 2007 Share Posted April 7, 2007 what's the value of $id? Quote Link to comment Share on other sites More sharing options...
Shade.Alchemist Posted April 7, 2007 Author Share Posted April 7, 2007 ?id=content/crew.php Although it's like that on the main directory too... Quote Link to comment Share on other sites More sharing options...
clown[NOR] Posted April 7, 2007 Share Posted April 7, 2007 well... i think that might be the problem.. you can try something like this: ?id=content&show=crew and then edit the include part to this: <?php $include = "home.php" $id = $_GET['id']; $show = $_GET['show']; if (isset($id)) { if ($id == "content") { $include = "$id/$show.php"; } } if (!file_exists($include)) { $include = "missing.php"; } require_once($include); ?> Quote Link to comment Share on other sites More sharing options...
Shade.Alchemist Posted April 7, 2007 Author Share Posted April 7, 2007 Parse error: syntax error, unexpected T_VARIABLE in /home/eternalt/public_html/index.php on line 161 This again Quote Link to comment Share on other sites More sharing options...
clown[NOR] Posted April 7, 2007 Share Posted April 7, 2007 damn!! i'm retarded =) change this line: $include = "home.php" to this: $include = "home.php"; but make sure you have a file named home.php in the same folder as index.php or else you will be a victim of error messages =) since it wont be able to find home.php the home.php dont need to have anything in it.. you just need to have the file there Quote Link to comment Share on other sites More sharing options...
Shade.Alchemist Posted April 7, 2007 Author Share Posted April 7, 2007 You're the retard? that just makes me seem even more retarded Anyway, that fixed one of the problems... Parse error: syntax error, unexpected $end in /home/eternalt/public_html/index.php on line 211 With line 211 being the closing line... </html> PHP is so damn confusing... Quote Link to comment Share on other sites More sharing options...
clown[NOR] Posted April 7, 2007 Share Posted April 7, 2007 if i'm right that error message means that you're missing a closing bracket somewhere ... add the whole file again =) Quote Link to comment Share on other sites More sharing options...
Shade.Alchemist Posted April 7, 2007 Author Share Posted April 7, 2007 Here you go... <HTML> <HEAD><link href="style2.css" rel="stylesheet" type="text/css"> <TITLE>Eternal Tales</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> </HEAD> <BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <div align="center"> <TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD background="images/ETv2_01.png" WIDTH=67 HEIGHT=51 ALT=""><a href="/"><img src="images/ETv2_01.png"></a></TD> <TD class="talesnews"background="images/ETv2_02.png" WIDTH=68 HEIGHT=51 ALT=""><a href="http://www.divine-infinity.com/forums/"><img src="images/ETv2_02.png"></a></TD> <TD background="images/ETv2_03.png" WIDTH=58 HEIGHT=51 ALT=""><a href="?id=content/tales.php"><img src="images/ETv2_03.png"></a></TD> <TD COLSPAN=3 background="images/ETv2_04.png" WIDTH=96 HEIGHT=51 ALT=""> <a href="link"><img src="images/Contactbutton.png"></a></TD> <TD COLSPAN=10 background="images/ETv2_05.png" WIDTH=511 HEIGHT=51 ALT=""></TD> </TR> <TR> <TD COLSPAN=16 background="images/ETv2_06.png" WIDTH=800 HEIGHT=68 ALT=""></TD> </TR> <TR> <TD COLSPAN=10 ROWSPAN=6 background="images/ETv2_07.png" WIDTH=563 HEIGHT=156 ALT=""></TD> <TD COLSPAN=4 class="talesnews" background="images/ETv2_08.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> <TD COLSPAN=2 ROWSPAN=6 background="images/ETv2_09.png" WIDTH=12 HEIGHT=156 ALT=""></TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_10.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_11.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_12.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_13.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_14.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=16 background="images/ETv2_15.png" WIDTH=800 HEIGHT=16 ALT=""></TD> </TR> <TR> <TD COLSPAN=16 class="affiliate" background="images/ETv2_16.png" WIDTH=800 HEIGHT=25 ALT=""> <?php include('Edit-WebAff.php'); ?> </TD> </TR> <TR> <TD COLSPAN=16 background="images/ETv2_17.png" WIDTH=800 HEIGHT=28 ALT=""></TD> </TR> <TR> <TD COLSPAN=4 ROWSPAN=7 class="nav" valign="top" background="images/ETv2_18.png" WIDTH=258 HEIGHT=357 ALT=""> <?php include('Edit-Navigation.php'); ?> </TD> <TD ROWSPAN=7 background="images/ETv2_19.png" WIDTH=3 HEIGHT=357 ALT=""></TD> <TD COLSPAN=11 background="images/ETv2_20.png" WIDTH=539 HEIGHT=3 ALT=""></TD> </TR> <TR> <TD COLSPAN=2 background="images/ETv2_21.png" WIDTH=45 HEIGHT=44 ALT=""></TD> <TD background="images/ETv2_22.png" WIDTH=151 HEIGHT=44 ALT=""></TD> <TD background="images/ETv2_23.png" WIDTH=1 HEIGHT=44 ALT=""></TD> <TD COLSPAN=2 background="images/ETv2_24.png" WIDTH=151 HEIGHT=44 ALT=""></TD> <TD background="images/ETv2_25.png" WIDTH=1 HEIGHT=44 ALT=""></TD> <TD background="images/ETv2_26.png" WIDTH=151 HEIGHT=44 ALT=""></TD> <TD COLSPAN=2 background="images/ETv2_27.png" WIDTH=37 HEIGHT=44 ALT=""></TD> <TD ROWSPAN=7 background="images/ETv2_28.png" WIDTH=2 HEIGHT=395 ALT=""></TD> </TR> <TR> <TD COLSPAN=2 ROWSPAN=3 background="images/ETv2_29.png" WIDTH=45 HEIGHT=89 ALT=""></TD> <TD COLSPAN=6 background="images/ETv2_30.png" WIDTH=455 HEIGHT=3 ALT=""></TD> <TD COLSPAN=2 ROWSPAN=3 background="images/ETv2_31.png" WIDTH=37 HEIGHT=89 ALT=""></TD> </TR> <TR> <TD> <a href="link"><img src="images/ETv2_32.png" WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD> <TD background="images/ETv2_33.png" WIDTH=1 HEIGHT=83 ALT=""></TD> <TD COLSPAN=2> <a href="link"><img src="images/ETv2_34.png" WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD> <TD background="images/ETv2_35.png" WIDTH=1 HEIGHT=83 ALT=""></TD> <TD> <a href="link"><img src="images/ETv2_36.png" WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD> </TR> <TR> <TD COLSPAN=6 background="images/ETv2_37.png" WIDTH=455 HEIGHT=3 ALT=""></TD> </TR> <TR> <TD COLSPAN=10 background="images/ETv2_38.png" WIDTH=537 HEIGHT=44 ALT=""></TD> </TR> <TR> <TD COLSPAN=10 class="content" valign="top" background="images/ETv2_39.png" WIDTH=537 HEIGHT=177 ALT=""> <?php $include = "home.php" $id = $_GET['id']; if (isset($id)) { $include = "$id.php"; } if (!file_exists($include)) { $include = "missing.php"; } require_once($include); ?> </TD> </TR> <TR> <TD COLSPAN=15 background="images/ETv2_40.png" WIDTH=798 HEIGHT=41 ALT=""> </TD> </TR> <TR> <TD COLSPAN=16 background="images/ETv2_41.png" WIDTH=800 HEIGHT=10 ALT=""></TD> </TR> <TR> <TD COLSPAN=16 class="footer" background="images/ETv2_42.png" WIDTH=800 HEIGHT=48 ALT=""> <?php include('Edit-Footer.php'); ?> </TD> </TR> <TR> <TD background="images/spacer.gif" WIDTH=67 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=68 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=58 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=65 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=3 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=28 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=17 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=151 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=105 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=46 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=151 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=27 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=2 HEIGHT=1 ALT=""></TD> </TR> </TABLE> </div> </BODY> </HTML> Quote Link to comment Share on other sites More sharing options...
clown[NOR] Posted April 7, 2007 Share Posted April 7, 2007 backup you exsisting index.php and overwrite the original with this code: <HTML> <HEAD><link href="style2.css" rel="stylesheet" type="text/css"> <TITLE>Eternal Tales</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> </HEAD> <BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <div align="center"> <TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR> <TD background="images/ETv2_01.png" WIDTH=67 HEIGHT=51 ALT=""><a href="/"><img src="images/ETv2_01.png"></a></TD> <TD class="talesnews"background="images/ETv2_02.png" WIDTH=68 HEIGHT=51 ALT=""><a href="http://www.divine-infinity.com/forums/"><img src="images/ETv2_02.png"></a></TD> <TD background="images/ETv2_03.png" WIDTH=58 HEIGHT=51 ALT=""><a href="?id=content/tales.php"><img src="images/ETv2_03.png"></a></TD> <TD COLSPAN=3 background="images/ETv2_04.png" WIDTH=96 HEIGHT=51 ALT=""> <a href="link"><img src="images/Contactbutton.png"></a></TD> <TD COLSPAN=10 background="images/ETv2_05.png" WIDTH=511 HEIGHT=51 ALT=""></TD> </TR> <TR> <TD COLSPAN=16 background="images/ETv2_06.png" WIDTH=800 HEIGHT=68 ALT=""></TD> </TR> <TR> <TD COLSPAN=10 ROWSPAN=6 background="images/ETv2_07.png" WIDTH=563 HEIGHT=156 ALT=""></TD> <TD COLSPAN=4 class="talesnews" background="images/ETv2_08.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> <TD COLSPAN=2 ROWSPAN=6 background="images/ETv2_09.png" WIDTH=12 HEIGHT=156 ALT=""></TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_10.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_11.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_12.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_13.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=4 class="talesnews" background="images/ETv2_14.png" WIDTH=225 HEIGHT=26 ALT=""> - <a href="link"> The Truth Is Right Here </a> </TD> </TR> <TR> <TD COLSPAN=16 background="images/ETv2_15.png" WIDTH=800 HEIGHT=16 ALT=""></TD> </TR> <TR> <TD COLSPAN=16 class="affiliate" background="images/ETv2_16.png" WIDTH=800 HEIGHT=25 ALT=""> <?php include('Edit-WebAff.php'); ?> </TD> </TR> <TR> <TD COLSPAN=16 background="images/ETv2_17.png" WIDTH=800 HEIGHT=28 ALT=""></TD> </TR> <TR> <TD COLSPAN=4 ROWSPAN=7 class="nav" valign="top" background="images/ETv2_18.png" WIDTH=258 HEIGHT=357 ALT=""> <?php include('Edit-Navigation.php'); ?> </TD> <TD ROWSPAN=7 background="images/ETv2_19.png" WIDTH=3 HEIGHT=357 ALT=""></TD> <TD COLSPAN=11 background="images/ETv2_20.png" WIDTH=539 HEIGHT=3 ALT=""></TD> </TR> <TR> <TD COLSPAN=2 background="images/ETv2_21.png" WIDTH=45 HEIGHT=44 ALT=""></TD> <TD background="images/ETv2_22.png" WIDTH=151 HEIGHT=44 ALT=""></TD> <TD background="images/ETv2_23.png" WIDTH=1 HEIGHT=44 ALT=""></TD> <TD COLSPAN=2 background="images/ETv2_24.png" WIDTH=151 HEIGHT=44 ALT=""></TD> <TD background="images/ETv2_25.png" WIDTH=1 HEIGHT=44 ALT=""></TD> <TD background="images/ETv2_26.png" WIDTH=151 HEIGHT=44 ALT=""></TD> <TD COLSPAN=2 background="images/ETv2_27.png" WIDTH=37 HEIGHT=44 ALT=""></TD> <TD ROWSPAN=7 background="images/ETv2_28.png" WIDTH=2 HEIGHT=395 ALT=""></TD> </TR> <TR> <TD COLSPAN=2 ROWSPAN=3 background="images/ETv2_29.png" WIDTH=45 HEIGHT=89 ALT=""></TD> <TD COLSPAN=6 background="images/ETv2_30.png" WIDTH=455 HEIGHT=3 ALT=""></TD> <TD COLSPAN=2 ROWSPAN=3 background="images/ETv2_31.png" WIDTH=37 HEIGHT=89 ALT=""></TD> </TR> <TR> <TD> <a href="link"><img src="images/ETv2_32.png" WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD> <TD background="images/ETv2_33.png" WIDTH=1 HEIGHT=83 ALT=""></TD> <TD COLSPAN=2> <a href="link"><img src="images/ETv2_34.png" WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD> <TD background="images/ETv2_35.png" WIDTH=1 HEIGHT=83 ALT=""></TD> <TD> <a href="link"><img src="images/ETv2_36.png" WIDTH=151 HEIGHT=83 ALT="" border="no"></a></TD> </TR> <TR> <TD COLSPAN=6 background="images/ETv2_37.png" WIDTH=455 HEIGHT=3 ALT=""></TD> </TR> <TR> <TD COLSPAN=10 background="images/ETv2_38.png" WIDTH=537 HEIGHT=44 ALT=""></TD> </TR> <TR> <TD COLSPAN=10 class="content" valign="top" background="images/ETv2_39.png" WIDTH=537 HEIGHT=177 ALT=""> <?php $include = "home.php" $id = $_GET['id']; $show = $_GET['show']; if (isset($id)) { if ($id == "content") { $include = "$id/$show.php"; } } if (!file_exists($include)) { $include = "missing.php"; } require_once($include); ?> </TD> </TR> <TR> <TD COLSPAN=15 background="images/ETv2_40.png" WIDTH=798 HEIGHT=41 ALT=""> </TD> </TR> <TR> <TD COLSPAN=16 background="images/ETv2_41.png" WIDTH=800 HEIGHT=10 ALT=""></TD> </TR> <TR> <TD COLSPAN=16 class="footer" background="images/ETv2_42.png" WIDTH=800 HEIGHT=48 ALT=""> <?php include('Edit-Footer.php'); ?> </TD> </TR> <TR> <TD background="images/spacer.gif" WIDTH=67 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=68 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=58 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=65 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=3 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=28 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=17 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=151 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=105 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=46 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=1 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=151 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=27 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=10 HEIGHT=1 ALT=""></TD> <TD background="images/spacer.gif" WIDTH=2 HEIGHT=1 ALT=""></TD> </TR> </TABLE> </div> </BODY> </HTML> Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted April 7, 2007 Share Posted April 7, 2007 When you use single quotes variables are not expanded, so use double quotes: <?php include("$id.php"); // // or // include ($id . '.php'); // // or // include ($_GET['id'] . '.php'); // // although the last one can be dangerous // ?> Ken 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.