apache, environment variablen
Hans-Joachim Hoetger
hajo at willi.gt.owl.de
Sun Sep 5 17:13:57 CEST 1999
On Sun, Sep 05, 1999 at 01:52:00AM +0200, Andre Landwehr wrote:
> guter Tip, es einfach mal über bash zu probieren... siehe da, mit bash
> funktioniert's. Stellt sich mir die Frage, warum der hier nicht tut (obwohl er
> problemlos tut wenn an der Kommandozeile aufgerufen und, wie gesagt, auch
> vorgestern noch als SSI getan hat...)
> -----
> #!/usr/bin/perl
>
> foreach (sort(keys %ENV))
> {
> print "$_ : $ENV{$_}<BR>";
> }
> -----
>
Moin
Hast Du das shell-skript nicht verstanden?
Versuch mal:
#!/usr/bin/perl
print "Content-type: text/html\n\n" ;
foreach (sort(keys %ENV))
{
print "$_ : $ENV{$_}<BR>";
}
--
Schuess
Hans-Joachim Hoetger
More information about the Linux
mailing list