PDA

View Full Version : SSI, php....


dispector
06-22-2005, 04:44 AM
im starting a website and was wondering how I can go about include files into my main layout file.

i've done this in the past using php, but the server im on now doesnt support that, so i was looking at SSI (which it supports). ive been reading about SSI and from what i gather its the opposite as php. instead of including files into the layout, the layout is included into the file. This wont really work for me since my layout is completly surrounding the text.

i was also worried that if i save the layout as a text file, like the SSI tutorials ive been reading say to, the flash and javascripts i have in my layout portion wont work in all browsers.

Thanks to anyone who read that and takes time to help, that was a long one.. :)

ps, im retarted, didnt see the "server side" forum..area...

sesshyzkidz
06-22-2005, 06:33 AM
Umm... PHP includes and SSI should be somewhat similar, but I've been experimenting with C++ lately rather than PHP and haven't done much with SSI, so I'm not 100% sure...


<!-- top section -->

<!-- include the navigation menu -->
<!--#include virtual="/mypagemenu.html" -->

<!-- rest of page -->

You have to build your layout around the X/HTML in the included file as well as the rest of your page (of course). I'm fairly sure you have to do the same with PHP, though it has been awhile...