SHTML query

liunx

Guest
Hello all. My first post here.<br />
<br />
Been searching the web with no luck so hope one of you guys and gals can help me.<br />
<br />
I came across Server Side Includes (.shtml) today and what I have read about it could really same me time. You can call another file to a particular position to your webpage. Excellent time saver if your updating something that appears on all or most of your pages. You'll only have to edit it once. <br />
<br />
What I want to know is is there a program you can run on your computer that will do what the servers do, enabling you to design your site offline and see the results of the cgi code.<br />
<br />
Cheers,<br />
richiebman<!--content-->Hey, welcome to the forums.<br />
<br />
First of all, your right -- Server Side Includes will definetely save you time. Note, however, not all servers support SSI.<br />
<br />
Secondly, yes, there is a number of programs you can run on your local machine which will allow you to test and debug server-side applications before you upload them to your web site.<br />
<br />
You will need to install a Web Server. I use IIS (Internet Information Services) which is the Microsoft web server; shipped with Windows 2000, XP, NT, etc.<br />
<br />
Considering you are using CGI, you should probably consider Download <!--more-->ing Apache from <!-- w --><a class="postlink" href="http://www.apache.org">www.apache.org</a><!-- w --> <br />
This server will run CGI, PHP, Perl, C, etc, etc. It is free for Download <!--more-->.<br />
<br />
Regards,<br />
Andrew Buntine.<!--content-->Cheers buntine.<br />
<br />
I've already tested SSI on my server this moring and they have it enabled. They use a Apache/1.3.29 server so I'll try Download <!--more-->ing from Apache. About the Microsoft IIS server though. I never new I had it. How would I go about installing it? I'm just curious.<br />
<br />
I am thinking of using several SSI srcipts to call the static components of my web pages eg:<br />
<br />
<!--#include file="navbar.inc"--><br />
<br />
This is how I want to save me time when updating these parts of my sites. However with SSI, does 'navbar.inc' (or 'navbar.txt') stay in the browsers cache? If it does then the loading of other pages would be quicker and would be similar to the loading times if you were using a frameset. Of course if it doesn't store and call it from the browsers cache, would loading times be a little bit longer???<!--content-->Sorry. About the Microsoft IIS thing. I have XP<!--content-->Im not too sure whether SSI files are cached. I would think that they would not be, as they simply being placed into the mother-document.<br />
<br />
This will not affect your loading times. It may add about 0.3 seconds. And connection speed will only get faster. Loading times are a worry of the past now -- atleast, thats the way we are heading.<br />
<br />
IIS will be on your Windows XP cd. Have a look there.;)<br />
<br />
Regards.<!--content-->Coming back to this thread coz I have another query.<br />
<br />
I have converted my site to have .shtml extension and use includes all over the place. But I still haven't worked out how to call an include file that would require the browser to navigate back UP the directory tree. I tell a lie. I can do it on IIS, but when I upload it to my webspace it says the include file is not found.<br />
<br />
In IIS this works:<br />
<br />
<!--#include file="../includes/file.shtm"--> <br />
<br />
putting the ../ enables this, like with regular html directory tree navigation.<br />
<br />
But this doesn't doesn't work on an Apache web server.<br />
<br />
Anything to do with <br />
<br />
<!--#include vitual=".......etc???<br />
<br />
Cheers,<br />
R<!--content-->
 
Back
Top