in reply to Re: Creating a file in a CGI script...
in thread Creating a file in a CGI script...

Wow. I was just about to post the same question. Except my situation is a little different. My script is going to be hosted on my ISPs NT/IIS/Perl box.. unfortunately. I can read from a file, but can't write. It's a file that exists too... but that doesn't seem to matter. CHMOD doesn't work either. Apparantly it isn't supported .... and hints? Thanks much, JoeG -
  • Comment on RE: Re: Creating a file in a CGI script...

Replies are listed 'Best First'.
RE: RE: Re: Creating a file in a CGI script...
by turnstep (Parson) on May 19, 2000 at 23:05 UTC
    Check out what open says when you try to open the file in write mode and (presumably) fail. Check the value of $!, check the error logs for the site, try writing a file in another location (e.g. /tmp or equivalent), and find out what user you are running as and the permission it has for each directory.