You are here: Re[2]: [PHP] asking comment « PHP « IT news, forums, messages
Re[2]: [PHP] asking comment

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация