/[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 6 - (hide annotations) (download)
Fri Jan 28 16:54:44 2005 UTC (9 years, 6 months ago) by hollow
File size: 274 byte(s)
Added icons and sample cgi's from apache-2.0.52.tar.bz2
Fixed bug #79722 (invalid xhtml in index.html)

1 hollow 6 #!/usr/local/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