Bob Sanderson wrote:
> if (file_exists($filename))
You may consider is_readable() instead. If the file exists but you cannot
read it, file_exists() will still return true. If the file does not exist
or you cannot read it, is_readable() returns false.