[Xitami] Another perl dummy here
C Bass
xitami@lists.xitami.org
Thu, 03 Oct 2002 11:17:38 -0700
OK, I know that so much has been written about getting Perl to run under
Xitami, but I still can't get anything to run.
-- I installed perl in C:/perl directory.
-- SSI & CGI are enabled in Xitami
-- I added the following to default.cfg
[Filter]
.pl=C:\perl\bin\perl.exe
-- The .cgi program is in the Main HTML Directory's cgi-bin directory which
is directly under the Main HTML Directory (A.K.A. root directory)
-- The calling HTML code in my page is as follows:
<FONT COLOR="#FF0000">(Listings last updated on <B>
<!--#include virtual="/cgi-bin/lastmod.cgi" -->
</B>)</FONT>
-- The program lastmod.cgi is as follows:
#!C:\Perl\bin\perl.exe -w
#
$date = $ENV{'LAST_MODIFIED'};
$date = substr($date, 0, length($date) - 12);
print "Content-Type: text/html\n\n$date";
-- The printed results from this call are as follows:
(Listings last updated on #!C:\Perl\bin\perl.exe -w # $date =
$ENV{'LAST_MODIFIED'}; $date = substr($date, 0, length($date) - 12); print
"Content-Type: text/html\n\n$date"; )
If I can get something as simple as this running, then I hope I can adapt
what is learned to other .cgi programs I use successfully online, as I now
do with this one. ANY SUGGESTIONS????? THANKS.