httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nelson, Robert D." <RDNel...@Mail.Donaldson.com>
Subject RE: [users@httpd] Basic CGI setup help needed
Date Tue, 21 Jan 2003 23:18:18 GMT
Michael:

> complex php/mysql script. I cannot get a simple test.cgi:
> ############################################
> #!/usr/bin/perl
> print "Content-type: text/html\n\n";
> print "<html><head><title>Environment Variables</title></head><body>";
> print "<h2>Environment Variables:</h2>";
> print "<hr>\n";
> foreach $evar( keys (%ENV)){
>    print "<b>$evar:</b> $ENV{$evar}<br />";
> }
> print "</body></html>\n";
> #############################################

Hopefully I'm mis-reading your "snip" delimiter but ... you don't actually
have all those pounds in the first line, do you?  If you did, you'll need to
get rid of those because the first line *must* be the shebang for the
interpreter to be called correctly.

 ~ Robert


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message