What is the best way to include the same content on multiple web pages? (e.g. SSI, PHP, Javascript...)
August 30, 2008 1:15 PM
Subscribe
What is the best way to include the same content on multiple web pages? (e.g. SSI, PHP, Javascript...)
There are many times when it is very handy to include the same content on many web pages. For example, a navigation menu, banner, logo or footer. If a site is made up of 50 pages then it is much more convenient to make 1 change than 50.
I'm currently aware of 3 methods of doing this. Server Side Includes (SSI), PHP's include method and Javascript's document.write.
What are the advantages and disadvantages of each of these methods? Which of them is the fastest to the end user? Are there any better solutions out there?
Note: I'm not asking about template options like that offered by Dreamweaver.
posted by Fluffy654 to computers & internet (9 comments total)
2 users marked this as a favorite
posted by Class Goat at 1:25 PM on August 30, 2008