RE: Re[2]: [PHP] asking comment
| From: | Jared Williams | Date: | Wed, 30 Mar 2005 17:27:14 +0000 |
| Subject: | RE: Re[2]: [PHP] asking comment | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211896@lists.php.net to get a copy of this message | ||
> JW> You cannot guarentee the filename you think doesn't exist with the
> JW> file_exists() doesn't exist when you eventually fopen() it,
> JW> otherwise.
>
> Using the original posters method, I agree. But there are
> plenty of ways around this without forcing a warning to occur
> (or having to suppress one), that avoids any sort of "race
> condition". It's just the way the OP is doing it is IMHO
> messy to begin with, but was obviously a solution born out of
> frustration.
If you think you have another method please elaborate.
Jared