Thread: Need some advice about includes
Results 1 to 3 of 3
05-31-2003, 04:21 PM #1
Need some advice about includes
I know that using php includes will allow search engines to crawl the included text, and this is not the case with js includes. If you don't care about having the included text crawled, is there a clear reason to use ssi or php includes, rather than js?
If so, which, ssi or php?
05-31-2003, 07:22 PM #2
If you use a js include, you have to surround everything with
document.write('all my stuff');
personally, I would use php includes, for the simple fact that in the future, if you wish to add some more php to do some clever stuff, you can just add the code to the include without any problems.
At the end of the day, from a purely 'include' point of view, the onyl difference is that SSI have to have a .shtml extension, and php includes have to have a .php extension.
At the end of the day, SSI is very limited in processing power and logic. PHP, of course, is unlimited in what it can do.If one of our members helps you, please click the icon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
06-02-2003, 08:53 AM #3
Thanks Dean, I had pretty well excluded js includes because of the write hassle. I'll go with php as you suggest.