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]
|