refiking Posted June 9, 2007 Share Posted June 9, 2007 I just got my header ready to go as header.php, but I was thinking and......... Is there a way to include this header on every page by calling it from my directory instead of copying and pasting all of that code on every page? Link to comment https://forums.phpfreaks.com/topic/54838-header-question/ Share on other sites More sharing options...
pocobueno1388 Posted June 9, 2007 Share Posted June 9, 2007 At the top of every page you want it on, just simply put this: include 'header.php'; Link to comment https://forums.phpfreaks.com/topic/54838-header-question/#findComment-271251 Share on other sites More sharing options...
refiking Posted June 9, 2007 Author Share Posted June 9, 2007 oh ok. But, would that affect any pages that have a redirect? Link to comment https://forums.phpfreaks.com/topic/54838-header-question/#findComment-271252 Share on other sites More sharing options...
inVINCEable Posted June 9, 2007 Share Posted June 9, 2007 I don't think you want to include the header in every page unless you want to redirect to the same page every time? I would create a <div> section containing the header, width, height, color, etc. specifications and include that in all your .php files. Then but I would code the actual header code into the each page individual depending on where you want to redirect your page. Link to comment https://forums.phpfreaks.com/topic/54838-header-question/#findComment-271255 Share on other sites More sharing options...
refiking Posted June 9, 2007 Author Share Posted June 9, 2007 Most of the pages won't be redirected. Just two of them. Link to comment https://forums.phpfreaks.com/topic/54838-header-question/#findComment-271257 Share on other sites More sharing options...
refiking Posted June 9, 2007 Author Share Posted June 9, 2007 It didn't affect my redirect pages. Thanks guys! Link to comment https://forums.phpfreaks.com/topic/54838-header-question/#findComment-271262 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.