Re: error

From: Date: Wed, 15 Aug 2001 12:31:41 +0000
Subject: Re: error
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-62814@lists.php.net to get a copy of this message
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: renze@datalink.nl -- 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 -- ««««««««««««««««««««««««

« previous php.general (#62814) next »