Re: PHP error message without revealing the file path??

From: Date: Tue, 17 Oct 2000 00:03:52 +0000
Subject: Re: PHP error message without revealing the file path??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-20485@lists.php.net to get a copy of this message
Sascha Kimmel writes: > Hi! > > I got this error when visting a site: > > >>> > Warning: MySQL Connection Failed: Can't connect to MySQL server on > 'sql-t.free.fr' (111) in your script on line 12 > Sorry, can't connect to SQL server, please come later... > <<< > [http://tropicalm.free.fr/pub/resource/demo/disp.php3?cat=%] > > Well, i wonder how to achieve this pretty "your script" instead of revealing > the full pathname. > > How can I achieve this? > > Regards, > Sascha Kimmel Replace the builtin error handler with a function which does what you want: http://www.php.net/manual/function.set-error-handler.php -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#20485) next »