Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where's the best place to put an SSI call in your code? 2

Status
Not open for further replies.

JennyW

Technical User
Mar 1, 2001
323
CA
Hi all!

I use SSI on my webpages.

Is there an ideal location within the html code to put my SSI calls?

For example:
- Is it better to put an SSI call at the top, middle or bottom of an html page?
- Should it be placed beneath or above a form? etc.

Here's something I'd be using:

<!--#include virtual=&quot;/scripts/ssi/template.txt&quot; -->


Thanks!
Jenny :)
 
As far as I know, you can put them anywhere. So, best thing is to put them wherever the included stuff would go if you weren't using SSI's :)

(I use them all over - top, bottom & middle ;-)) One by one, the penguins steal my sanity. X-)

 
Hi Jenny,

It depends on the content of your include-file and the code in file that calls it. But most of the time the place is at the top I think.

If you only put some specific HTML-code in the include file you want to put that on a specific place of the file that calls it.

Erik

<!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top