in reply to Creating a file in a CGI script...

Thanks princepawn, Thanks httptech.

Your Humble Servant,
-Chuck

Replies are listed 'Best First'.
RE: Re: Creating a file in a CGI script...
by JoeG (Initiate) on May 19, 2000 at 21:17 UTC
    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 -
      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.