in reply to CGI doesn't make the file

lhoward is quite right about the dangers of writing data files to the cgi-bin directory. Additionally, I'd like to point out that Perl will tell you why it's not writing the file if you ask it to:

open(Filename, ">/home/httpd/cgi-bin/file") or die "Can't open file: $!\n";

In a CGI environment, this error should be written to your web server's error log.

--
<http://www.dave.org.uk>

European Perl Conference - Sept 22/24 2000, ICA, London
<http://www.yapc.org/Europe/>

Replies are listed 'Best First'.
RE: Re: CGI doesn't make the file
by Ugly (Beadle) on Jul 28, 2000 at 14:06 UTC
    Or if you add

    use CGI::Carp qw(fatalsToBrowser);

    You'll see them in the browser, very handy for debugging.

    --
    See you at Yapc::Europe!
    ... And then they asked me for a signature!

      Great for debugging, not so good for production servers as you run the risk of giving too much information to the bad guys.

      If you use fatalsToBrowser you should comment it out before putting the script into production.

      --
      <http://www.dave.org.uk>

      European Perl Conference - Sept 22/24 2000, ICA, London
      <http://www.yapc.org/Europe/>