Gossamer Forum
Home : General : Perl Programming :

SSI Calls

Quote Reply
SSI Calls
Hi,

I would like to insert SSI's in my HTML-Website like:

<!--#exec cgi="/time/cgi-bin/timeit.pl"-->
<!--#include virtual="news/data/1.viewh" -->

I would like to use absolute paths. Can I simply change it to the file path or does I have to configure something else?

Phil.

Quote Reply
Re: SSI Calls In reply to
If I am not mistaken, you can't use absolute paths.. ie

/root/somedir/someotherdir/yourdir/yourfile


Would not work. It would have to be /yourdir/yourfile type .





------------------
The Crowe crowe@charter.net
www.lit.org Links Engine for Writing on the net!



Quote Reply
Re: SSI Calls In reply to
but I'm using templates and the same Code is inserted in each page. The HTML-pages are in different directories, so it probably wouldn't work. Must I "hand-update" every page?

Or can I also use relative paths?

Phil.
Quote Reply
Re: SSI Calls In reply to
No...use complete relative paths, like the following:

Code:
<!--#exec cgi="/cgi-bin/timeit.pl"-->
<!--#include virtual="/news/data/1.viewh" -->

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: SSI Calls In reply to
As easy as that. One must know it. Thank you.
Quote Reply
Re: SSI Calls In reply to
hi,
how can i do this :
<!--#exec cgi="/time/cgi-bin/timeit.pl"-->

but in an ASP page . i tried it and it doesnt work, does anyone know how to do it ?

Thnkas
Quote Reply
Re: SSI Calls In reply to
Laith,

This will not be that easy...you could try to convert the .pl script into an .asp page using perlscript as the language for the .asp page.

Then use the following codes:

Code:
<!--#include virtual="/cgi-bin/timeit.asp"-->

Also, you do not have to include "time". You just need to include the relative path to the script.

Regards,


------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums