Hello Gents
just to infor you, the problem seams to ben on the output of the
printenv.pl (and not on the apache configuration)
With the follow script the out is correct
#!C:/perl/bin/perl.exe
##
## my_printenv -- demo CGI program which just prints its environment
##
use CGI;
#
$query = new CGI;
#
print $query->header;
print $query->start_html($PROGRAM);
print "<H1> Demo CGI program which just prints its environment</H1>\n";
#
print "<PRE>";
foreach $var (sort(keys(%ENV))) {
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "${var}=\"${val}\"\n";
}
print "</PRE>";
#
print $query->end_html;
I hope that this help you
Available for fore info
Regards LAGO
alessandro.lagostena wrote:
> I havw make more test and now only wat to use script is to rename
<font color=purple> > printenv.pl -> printenv.cgi and call <a style='text-decoration: underline;' href="http://my-web/cgi-bin/printenv.cgi</font" target="_blank">http://my-web/cgi-bin/printenv.cgi</font</a>>
>
> On ths way work but .... i prefer to use an configuration with the
> extention .pl
>
> the discussione can continue ?
>
> JBowler wrote:
>
>> Been there and done that in numerous ways. Tried with / before and
>> without.
>> Maybe I missed one but it must be obscure.
>>
>>
>> "dave k" <dirtballjoe RemoveThis @nospam.net> wrote in message
>> news:H8qAb.1968$_r6.1715@newsread1.news.pas.earthlink.net...
>>
>>> make sure that the first line of your cgi script points to perl.exe
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Apache 2.0 and cgi-bin perl problem