Reply to Re: Error suppression operator (@)

Your name:

Reply:


Posted by Rory Browne on 05/05/05 14:29

ditto everyone who said use it if you don't care about errors, but
don't use it in places where you expect errors.

Also don't use it in places where it can be avoided with minimal cost.

For example if you have an optional field, and people usually fill it
in, and rarely leave it empty, then you could use the @ operator then.
Otherwise, if people rarely fill it in and it's causing E_NOTICE
errors frequently then, I'd do some standard error checking instead.

I don't have benchmarks to support this theory(which will probably be
discredited soon), but I've read somewhere that errors(even
E_NOTICES), seriously slow a script down.

Sorry Colin for your receiving this twice.

[Back to original 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

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