in reply to File protection in a called script
"will not work" is not very specific. Is the file being created but is empty? Is it not getting created at all? What error messages are you getting? (If none, you should add some diagnostic messages.)
However, I'm going to guess that you're trying to write into the directory where the CGI is executing, and you don't have permission to do that. Try putting in an absolute path for the file name: $file = '/tmp/current.txt'; #or some suchRemember, the directory that the file is in is not necessarily the current directory when it executes.
HTH
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: File protection in a called script
by TrinityInfinity (Scribe) on Nov 15, 2002 at 16:45 UTC | |
by iburrell (Chaplain) on Nov 15, 2002 at 17:23 UTC |