On Wednesday, September 17, 2003, at 03:56 PM, drieux wrote:
Remember that most web servers are running as the web-server uid - www or apache - and so can only 'write' where that uid has 'write permission'. It can of course read/execute anything that is 'world readable/executable' but as a general rule of sanity, it is NOT WISE to make those directories 'world writable'. So when the code executes as www, it has no problem reading IN any files that it can read - but you really would not want to allow it to over-write your own CGI code and/or fill up the disk with a bunch of files, because each run of the CGI code needs to be different...
You might try something like
open(FILE, ">/tmp/newfile.txt") || die("newfile.txt: $!"); ....
Thanks for the advice, writing to '/tmp' worked for me. Although I don't understand why I can't write to the same directory my CGI scripts are located in. I've done this before on Free Webhosts like tripod and netfirms.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]