zavin Posted September 25, 2009 Share Posted September 25, 2009 I have a page that I want to include in all pages except one. I have the included page in my header so that it is included on every page. Is there something that I can put on the one page that I don't want it included on so that it does not show up. Link to comment https://forums.phpfreaks.com/topic/175441-include-page/ Share on other sites More sharing options...
smerny Posted September 25, 2009 Share Posted September 25, 2009 to be clear on what you have... do people directly access each of these php pages? and do each of them have the include coded directly on them? Link to comment https://forums.phpfreaks.com/topic/175441-include-page/#findComment-924517 Share on other sites More sharing options...
zavin Posted September 25, 2009 Author Share Posted September 25, 2009 The include is in the header. None of the page are accessed directly they are all accessed from the header. Link to comment https://forums.phpfreaks.com/topic/175441-include-page/#findComment-924521 Share on other sites More sharing options...
smerny Posted September 25, 2009 Share Posted September 25, 2009 simple if statement... do you have GET info determining which page is shown? if so... check if it's the page you don't want the php file included on, if it is, then don't include the file Link to comment https://forums.phpfreaks.com/topic/175441-include-page/#findComment-924533 Share on other sites More sharing options...
hamza Posted September 25, 2009 Share Posted September 25, 2009 I have a page that I want to include in all pages except one. I have the included page in my header so that it is included on every page. Is there something that I can put on the one page that I don't want it included on so that it does not show up. in your header just make a simple check (if statement) that will include your file accept one. Link to comment https://forums.phpfreaks.com/topic/175441-include-page/#findComment-924594 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.