On my website I have an external style sheet which affects a layout.php file. I use a include command to place this layout.php file on every page I want it. This works great on every single file that is in the same folder. But, when I try using it in a different folder it doesn't work. I have no errors just nothing displays.
Here is the code for layout.php:
Here is one of the files in a different folder:<html>
<div id="header">
<header>
<a href="http://hokietracks.com"><img src="http://hokietracks.com/index/images/linkedlogo.png" border=0></a>
</header>
</div>
<body>
<link rel=StyleSheet href="http://hokietracks.com/index/style.css"
type="text/css">
<div id="quote">
<?php
$quotes[] = "That was then, I bleed orange and maroon now. -JT Thompson";
$quotes[] = "We will prevail, we are Virginia Tech. -Nikki Giovanni";
$quotes[] = "I don't know what a Hokie is but god is one of 'em. -Lee Corso ESPN";
$quotes[] = "One minor set back for one major comeback. -Victor Macho Harris";
srand ((double) microtime() * 1000000);
$randomquote = rand(0,count($quotes)-1);
echo "<p>" . $quotes[$randomquote] . "</p>";
?>
</div>
<div id="search">
<form action="http://hokietracks.com/index/search.php" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-5087843239980019:43xe111o30d" />
<input type="hidden" name="cof" value="FORID:11" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="15" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?fo ... "></script>
</div>
<div style="margin-top: -56px">
<div style="margin-left: 100px">
<div id="outside">
<ul id="navigation-1">
<li><a href="" title="All Headlines" target="_self" >News</a>
<ul class="navigation-2">
<li><a href="http://hokietracks.com/index/forums/football.php" title="Football" target="_self" >Football</a></li>
<li><a href="#" title="Men's Basketball" target="_self" >Men's Basketball</a></li>
<li><a href="#" title="Women's Basketball" target="_self" >Women's Basketball</a></li>
</ul>
</li>
<li><a href="#" title="Forums" target="_self" >Forums</a>
<ul class="navigation-2">
<li><a href="#" title="sample" target="_self" >sample</a></li>
<li><a href="#" title="sample" target="_self" >sample</a></li>
<li><a href="#" title="sample" target="_self" >sample</a></li>
</ul>
</li>
<li><a href="#" title="sample" target="_self" >sample</a>
<ul class="navigation-2">
<li><a href="#" title="sample" target="_self" >sample</a></li>
<li><a href="#" title="sample" target="_self" >sample</a></li>
<li><a href="#" title="sample" target="_self" >sample</a></li>
</ul>
</li>
<li><a href="#" title="sample" target="_self" >sample</a>
<ul class="navigation-2">
<li><a href="#" title="sample" target="_self" >sample</a></li>
<li><a href="#" title="sample" target="_self" >sample</a></li>
<li><a href="#" title="sample" target="_self" >sample</a></li>
</ul>
</li>
</ul>
</div>
</style>
<div id="menu-vertical">
<div style="margin-top: 3px">
<div style="margin-left: -145px">
<div class="buttonscontainer">
<div class="buttons">
<a href="http://hokietracks.com/index/home.php">Home</a>
<a href="">Login</a>
<a href="http://hokietracks.com/index/register.php">Register</a>
<a href="">News</a>
<a href="http://hokietracks.com/index/photo.php">Photo of the Week</a>
<a href="http://hokietracks.com/index/video.php">Video of the Week</a>
<a href="">Forums</a>
<a href="">Links</a>
<a href="">About Us</a>
<a href="">Contact Us</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="ads">
<script type="text/javascript"><!--
google_ad_client = "pub-5087843239980019";
/* 120x600, created 3/28/09 */
google_ad_slot = "4627603943";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</dv>
<title>Hokie Tracks</title>
<link rel="shortcut icon" href="http://hokietracks.com/index/images/favicon.ico">
<link rel="icon" type="image/gif" href="http://hokietracks.com/index/images/ani ... vicon1.gif">
</body>
</html>
<body>
<html>
<?php
include ("http://hokietracks.com/index/layout.php");
?>
<div id="contnt">
<div id="h1">
Football Forums
</div>
</div>
</body>
</html>