> 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
Hello Jared,
Wednesday, March 30, 2005, 4:51:01 PM, you wrote:
>> If you're happy with your scripts generating E_WARNING's all
>> over the place then yes. Personally, I'm not.
JW> You cannot guarentee the filename you think doesn't exist with the
JW> file_exists() doesn't exist when you eventual
Hello Jared,
Wednesday, March 30, 2005, 4:16:31 PM, you wrote:
JW> If want to create a unique filename, and are using PHP4.3.2
JW> or better, use fopen() with the 'x' or 'x+' mode, rather than
JW> file_exists().
If you're happy with your scripts generating E_WARNING's all over the
place then yes
3 matches
Mail list logo