473,382 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 4588
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
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
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
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
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
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
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
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
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
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.