Re: Problem writing to a file

2003-09-17 Thread John Park
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 genera

Problem writing to a file

2003-09-17 Thread John Park
Hi everyone, I have a script where I am trying to write information to a file but could not do so. This is what my script looks like: #!/usr/bin/perl use CGI; ... ... open(FILE,">newfile.txt") || die("newfile.txt: $!"); #script stops here due to permissions I can open files, and output its conte