|
Posted by Richard Davey on 03/30/05 19:47
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 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.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I do not fear computers. I fear the lack of them." - Isaac Asimov
Navigation:
[Reply to this message]
|