SandySynaptik Posted April 11, 2011 Share Posted April 11, 2011 I don't want to create footer for every page of my website, this is because when I want to update something in the footer it will remain incomplete on some page. Its hard to edit them in all. Is there something useful to me.Please give me any suggestions. Link to comment Share on other sites More sharing options...
justsomeguy Posted April 11, 2011 Share Posted April 11, 2011 You can use an include statement to include any other files on your pages. All of your pages could include the same header and footer, for example:http://www.php.net/manual/en/function.include.php Link to comment Share on other sites More sharing options...
jeffman Posted April 11, 2011 Share Posted April 11, 2011 Better example here: http://www.sophox.com/wordpress/?p=1158 Link to comment Share on other sites More sharing options...
thescientist Posted April 11, 2011 Share Posted April 11, 2011 Better example here: http://www.sophox.com/wordpress/?p=1158 naturally :) Link to comment Share on other sites More sharing options...
jeffman Posted April 11, 2011 Share Posted April 11, 2011 Yeah, yeah. The point is, the manual discusses the include directive the way a C manual would, as if it's only for code. You would never look at that page and think, "Oh, I can include a block of HTML in the middle of my document." A very strange lapse in an otherwise exemplary manual. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.