Re[2]: asking comment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux