"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
In reply to Re: File protection in a called script
by VSarkiss
in thread File protection in a called script
by TrinityInfinity
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |