Results 1 to 2 of 2

Thread: PHP Includes...

  1. #1
    Join Date
    Oct 2005
    Posts
    198

    Question PHP Includes...

    Hello everyone,

    I've been looking for a way to use a single header among many pages so that as you load new pages the header doesn't reload every time. Is this possible to do using PHP?
    If not, any ideas for me?

    Thank you for any help,

    FOX

  2. #2
    Join Date
    Dec 2004
    Posts
    2,788
    PHP Includes and Server Side Includes (SSI) both allow you to insert a chunk of code into any page you want to by including a tag where that code goes. It could insert all the code for your header from a single file into each page on your site. It, for instance, keeps you from having to edit every page when you make a single change to that header. It looks to a browser as if it's code that is physically part of that page all along, and each page will load in the browser as if it's a new page. That means the header code will load again with each new page, just as if it were part of each new page (which it is).

Similar Threads

  1. CMS advice (php)
    By Littlened in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 07 Jul 2007, 05:02 AM
  2. Dynamic php includes
    By xstevey_bx in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 21 Sep 2006, 02:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •