Using SSI within CGI scripts? - Is it possible? (Posted by joelmoss)
Is it possible to use SSI calls within Perl CGI scripts? If so, how would I do that?
Thanks.
----------
Joel Moss
homepagetools.com & unlimitedhosting.net
Is it possible to use SSI calls within Perl CGI scripts? If so, how would I do that?
Thanks.
----------
Joel Moss
homepagetools.com & unlimitedhosting.net
Federico Carnales posted this at 02:17 — 4th November 1999.
They have: 69 posts
Joined: Apr 1999
You can use PERL functions to do the most common SSI features
To include another script:
require "/path/to/anotherscript.pl";
To include a text file:
$file = "/path/to/textfile.txt";
open (F, $file);
while (<F>) { print }
close F;
I'm not sure how many other SSI functions there are, but I'm sure you can do them all with PERL code.
Cheers!
----------
Reviews of the best resources for webmasters in your e-mail every week!
Subscribe for [red]FREE[/red] by going to http://www.web-reviews.com/
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.