Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: How do I use SSI in dynamic mode?

Quote Reply
Re: How do I use SSI in dynamic mode? In reply to
AFAIK you can't directly 'execute' an SSI call from within another script, e.g.; page.cgi

An include is parsed by the server as it serves the page, whereas the script is 'run' by the server and the results are 'displayed'.

You could try using LWP::Simple to 'grab' the output of the script (this may or may not work for you):

Code:
use LWP::Simple;
$news = get("http://www.yoursite.com/cgi-bin/abcnews.pl?us");
... then pass $news to a tag:

news => $news

... than place the tag on your template:

<%news%>[/pre]
There is another method that involves adding part of the script you want to call to the script you're calling from but that can get a bit complicated and messy.

Hope this helps.


All the best
Shaun

Subject Author Views Date
Thread How do I use SSI in dynamic mode? BeaverheadRiver 1437 May 5, 2001, 3:05 PM
Thread Re: How do I use SSI in dynamic mode?
qango 1381 May 5, 2001, 4:00 PM
Thread Re: How do I use SSI in dynamic mode?
surfsafely 1369 May 5, 2001, 6:35 PM
Post Re: How do I use SSI in dynamic mode?
pugdog 1366 May 5, 2001, 8:43 PM