On Wed, Aug 15, 2001 at 02:08:39PM +0200, Alexander Wagner wrote:
> Eduardo Kokubo wrote:
> > Hi,
> >     How can I change this error message to my own message?
> > Warning: fopen("publico/d/bibliografia.html","w+") - No such file or
> > directory
> 
> There are two possibilities:
> 1) Use @fopen() instead of fopen(). This will supress the error-output. 
> If fopen returns false, you still know something went wrong. You don't 
> know what went wrong, though (permission, file doesn't exist...).
> 2) Use output-buffering. This way, the error-message will not be sent 
> to the browser but remain in the buffer. Just look into the buffer if 
> there is an error and react. Also, you should erase the error-message 
> from the buffer.

3) Write your own error-handler:
   http://www.php.net/set_error_handler

-- 

* R&zE:

-- »»»»»»»»»»»»»»»»»»»»»»»»
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- H: +31 23 5516190
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
--
-- http://www.datalink.nl
-- ««««««««««««««««««««««««

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to