/[apache]/trunk/dist/gentoo-webroot-default/webroot/cgi-bin/printenv
Gentoo

Contents of /trunk/dist/gentoo-webroot-default/webroot/cgi-bin/printenv

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33 - (show annotations) (download)
Sun Apr 24 06:49:37 2005 UTC (9 years, 3 months ago) by hollow
File size: 268 byte(s)
updated index.html to look like apache test pages

1 #!/usr/bin/perl
2 ##
3 ## printenv -- demo CGI program which just prints its environment
4 ##
5
6 print "Content-type: text/plain\n\n";
7 foreach $var (sort(keys(%ENV))) {
8 $val = $ENV{$var};
9 $val =~ s|\n|\\n|g;
10 $val =~ s|"|\\"|g;
11 print "${var}=\"${val}\"\n";
12 }

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20