How to exclude file from particular pages?
Posted: Wed Jan 05, 2011 9:39 am
Hello all,
I am new here so please forgive the coding language.
I am working on a clients site that someone else created in php. I need to exclude a file that is included in my index.php from all pages except the index page itself.
In my index.php it includes the header.php for the site. The header.php file includes a Topnav.php file. The TopNave.php file is what I need to exclude from all pages except the index (home) page.
Could someone help me understand how this can be done?
Here is the code in my Topnav.php file -
I am new here so please forgive the coding language.
I am working on a clients site that someone else created in php. I need to exclude a file that is included in my index.php from all pages except the index page itself.
In my index.php it includes the header.php for the site. The header.php file includes a Topnav.php file. The TopNave.php file is what I need to exclude from all pages except the index (home) page.
Could someone help me understand how this can be done?
Here is the code in my Topnav.php file -
Code: Select all
<div id="greenStripe"> <img src="/_images/bannerGreen.jpg" width="895" height="26"/> </div>
<div id="flash">
<?php
include "flashObject.php";
?></div>
<div id="topNavContainer" style="width:895px">
<?php
include "topNav.php";
?>
</div>