Using server-side includes from CGI scripts

Philippe-Andre Prindeville (philipp@res.enst.fr)
Fri, 8 Dec 95 06:01:10 +0100


Date: Fri, 8 Dec 95 06:01:10 +0100
From: Philippe-Andre Prindeville <philipp@res.enst.fr>
Message-Id: <9512080601.ZM20357@jones.res.enst.fr>
To: www-html@w3.org
Subject: Using server-side includes from CGI scripts

Hi.

        Apologies if this is the wrong group...

        I'm writing a fairly simple script to preen our NIS database,
find all the passwd entries  with the same primary group id, and print
out a nicely formatted table with the full name, office, work phone,
and email address.  Fairly straightforward, right?  Thought it would
be a good exercise to learn CGI programming.

        Well, I'm stumped.  Everything was going so well until I tried:

<!--#config timefmt="%a, %e %b %Y %T %Z" -->
<p>
URL <!--#echo var="DOCUMENT_URI" -->
<p>
<em>Created <!--#echo var="DATE_LOCAL" --></em>

in the document.  It doesn't print anything at all!  And the HTTPD
server (NCSA v. 1.3 I believe) is configured to allow "IncludesNOEXEC"
in CGI-BIN scripts.  (I think)

So, why shouldn't a CGI bin program be able to access the current time
and date, it's own URL, or even include other text files?

The above HTML looks well-formed to me, so I can't figure it out.

Also, on a completely unrelated note:  Are tables broken on Mozilla
v1.12?  Tables with empty cells tend to do *bizarre* stuff...

Please reply directly, unless you think this might be of general
interest.

Thanks,

-Philip