Daniel Keller wrote:
Hello!
I'm trying to set up a page system using "dynamic" SSI. That means that I
normally use the following on my website:
<!--#include virtual="file.inc" -->
Now I want to make this "dynamic" and I don't have a clue how to do so.
I want to link to a file using something like this:
<a href="file.shtml?dynamic">Link</a>
In "file.shtml" I want to use the "dynamic"-thing that I sent with the
link:
<!--#include virtual=" ??? dynamic ??? " -->
Can somebody help me please? Thank you very much in advance!
I use SSI to generate a Web page on the fly. Is this similar to
what you want? If so, read on.
The "Web page on the fly" is an index of all my Web pages. You
can see it by going to my home page (signature line below) and
scrolling to the bottom. The select "Index of Web Pages".
What happens is that this link is to a small page that contains a
SSI request that causes a Korn shell UNIX script to generate a
HTML file named index_list.html in my main Web directory on my
ISP's Web server. The small page also has the following META tag:
<META HTTP-EQUIV="Refresh" CONTENT="5;
URL=http://www.rossde.com/index_list.html">
This META tag causes the newly generated HTML file to load on the
visitor's browser. Note that the 5 second delay is only for
effect, to make the visitor think something real complicated is
happening. I believe the small page would not really load in the
visitor's browser until the SSI is completed. (I'm going to
change the delay to 1 second.)
Counters are done via SSIs in a similar manner, but their results
go into the Web page that contains the SSI request. My counter
does not merely count hits. It first checks to see if the latest
previous hit was from the same IP address within the past 5
minutes; if so, it does not increment the counter. Using
different input parameters, I then use that counter script to
maintain distinct counters for 13 different Web pages on my site.
Note that I made special arrangements with my ISP to make Korn my
default shell rather than the usual C shell. De gustibus non est
disputandum.
--
David E. Ross
<http://www.rossde.com/>
Concerned about someone snooping into your E-mail?
Use PGP. See my <http://www.rossde.com/PGP/>