[EMAIL PROTECTED] wrote:

> #!/usr/bin/perl -w
> use strict;
> BEGIN{open(STDERR, ">./err.txt")}
> print "Content-Type: text/html\n\n";
> foreach my $key (sort keys %ENV) {
>      print "\$ENV{$key} = $ENV{$key}<br/>\n";
> }
>
> None of my scripts are functioning on my new server.  The BEGIN statement
> doesn't write err.txt

That is very good.  If your CGI directory were writable, it would be a major
security threat to the system on which it is mounted.  Do your writing to a
sister directory chmod'ed 660.


Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to