Reply to Custom error handling

Your name:

Reply:


Posted by Alvaro G Vicario on 11/15/27 11:23

I've created my own function for error handling using set_error_handler().
My problem is that, when using copy() to copy files, I can't suppress
system's error messages. So when I'm trying to copy a file that does not
exist I get two error messages: mine and system's.

I've tried the @ operator with no luck: @copy(...)

Apart from adding extra checks so copy() never returns an error or using
system(), is there a way to replace all error messages with mine?

--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--

[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

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