473,486 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Dynamic SSI

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!

-Daniel
Jul 20 '05 #1
4 4598
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!

-Daniel


Use a server-side scripting language.

--
Anne van Kesteren
<http://www.annevankesteren.nl/>
Jul 20 '05 #2
Daniel Keller <de**************@gmx.net> wrote:
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!


Depends on your server. It may support XSSI which would permit the
following syntax:

<!--#include virtual="$QUERY_STRING" -->

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3
"Daniel Keller" <de**************@gmx.net> wrote in message
news:5f****************************@40tude.net...
: 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 ??? " -->
:
An alternative to server-side scripting is WebCharm custom tags. For example,

- on line 2 of file.shtml, specify this tag
<!--%pageRequestServlet,1,*,2,300 %-->
your HTML code should start on line 3
- within file.shtml specify this tag at the include content location
<!--@topic lnk2 0 inc_file_list.txt@-->
- the inc_file_list.txt content may look like
home, file1.inc
f1, file1.inc
f2, file2.inc
f3, file3.inc
...
Note: (.inc) files are assumed to be in HTML format
- then specify your link URL like this
<a href="file.shtml?lnk2=f1">Link to file1.inc</a>
<a href="file.shtml?lnk2=f2">Link to file2.inc</a>
...

In order for this to work, the WebCharm engine must be used to process
the page requests (i.e. file.shtml?lnk=f1). If you don't have it already, WebCharm
Free is available for download here:

www.edgesoft.ca/go/wcindex.html?top=wcdl

WebCharm tag documentation is available here:

www.edgesoft.ca/wcindex.html?top=wcug

With Apache 2.0 the output generated by WebCharm can be further processed
using SSI, but this would be somewhat redundant.

Good Luck,

Long

Jul 20 '05 #4
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/>
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1866
by: Roel Wuyts | last post by:
CALL FOR CONTRIBUTIONS International Workshop on Revival of Dynamic Languages http://pico.vub.ac.be/~wdmeuter/RDL04/index.html (at OOPSLA2004, Vancouver, British Columbia, Canada, October...
1
2390
by: Guinness Mann | last post by:
When you guys talk about "dynamic SQL," to what exactly are you referring? Is dynamic SQL anything that isn't a stored procedure? Specifically, I use ASP.NET to communicate with my SQL Server...
6
2954
by: Materialised | last post by:
Hi Everyone, I apologise if this is covered in the FAQ, I did look, but nothing actually stood out to me as being relative to my subject. I want to create a 2 dimensional array, a 'array of...
3
1312
by: Stephen Gennard | last post by:
Hello, I having a problem dynamically invoking a static method that takes a reference to a SByte*. If I do it directly it works just fine. Anyone any ideas why? I have include a example...
7
3367
by: serge | last post by:
How can I run a single SP by asking multiple sales question either by using the logical operator AND for all the questions; or using the logical operator OR for all the questions. So it's always...
0
2051
by: Pascal Costanza | last post by:
Dynamic Languages Day @ Vrije Universiteit Brussel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Monday, February 13, 2006, VUB Campus Etterbeek The VUB (Programming Technology Lab,...
7
22467
by: Mike Livenspargar | last post by:
We have an application converted from v1.1 Framework to v2.0. The executable references a class library which in turn has a web reference. The web reference 'URL Behavior' is set to dynamic. We...
1
7942
by: Peterwkc | last post by:
Hello all expert, i have two program which make me desperate bu after i have noticed the forum, my future is become brightness back. By the way, my problem is like this i the first program was...
5
2571
by: bearophileHUGS | last post by:
I often use Python to write small programs, in the range of 50-500 lines of code. For example to process some bioinformatics data, perform some data munging, to apply a randomized optimization...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.