View Full Version : Ssi
2-19-02, 10:42 PM
whats the difference between #include file= and #include virtual=
and also if you have alot of shtml's on ur website does it slow it down?
2-19-02, 10:52 PM
The 'call' tag depends upon the type of file you're calling. If it's a text file then you'd use the 'include file'. This also works with another HTML page.
If it's a cgi script of some sort then you'd use the 'include virtual' or, sometimes, the 'exec cgi' tags.
And, yes, if there's a lot of them then it can slow down the page load depending upon what it is you're calling. If it's some massive perl script or a big file then the server has to parse that data into the page along with the graphics and HTML that's already there.
SSI is usually for things like a news script where you have headlines changing all the time. Also, for running a particular script that's telling the date, time, etc. Most perl scripts run in their own 'page' and trying to insert that page into a HTML formatted page could cause the whole thing to look whacky.
I have an SSI call on my home page that's on the right side. It's for news updates.
I also have the same program running on the 'Reviews' page as an SSI, AND, on the 'Commentary' page. (it's the same script installed 3 times in different directories). But, it shows how you can change the layout to suit your needs.
2-20-02, 03:18 PM
i used SSI on all my pages, but it only calls the side navigation table
so when i wanna change something in the table, i dont have to upload all my pages again...
so i made a file like menu.txt and i have HTML in there..
i use #include virtual= cus file= doesnt seem to work...
is that right or any other suggestions or easier ways to do what im trying to do?
2-20-02, 04:19 PM
#include virtual includes the http server response from another get request to the server. include file just dumps the file in.
Best of luck,
2-20-02, 04:44 PM
I use includes all the time.... Include File.... for navigation....
but I create An HTML page... leave it named .HTM.... created the tables... links ect... then strip out the HTML from the BODY tag up.... and From the body TAG down...
Doens't look very pretty in DW.... but it will assume... CSS... or html formatting from the parent page....
an like you said.... you only have to change one file... for you navigation changes...
I do the same with headers & footers as well....
2-20-02, 04:52 PM
Me too. Loves those includes !! :D
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.