Click to See Complete Forum and Search --> : Best way to inlcude .txt file


JayCally
10-18-2007, 07:07 PM
I'm redesigning my site and want to update certain text blocks without having to change that page's html code. Say on the main page, I want to change a the contents of the "what's new" DIV (just text).

What is the best way of doing it? SSI, PHP include, or maybe Javascript. I was also thinking about creating the navigation in another html file and including that as well.

scragar
10-18-2007, 09:54 PM
SSIs should be more than good enough if all your after is including one file in another. PHP is best used for dynamic content and javascript for the pretty stuff(noting of course that even without it you should still have full accessibility).