|
Posted by peter on 09/07/05 00:40
>I know you can turn off (and should) errors in the php.ini file on
>production sites so that users cannot see error messages on the browser.
>
> Is there anyway to still present something like a page that may show a
> logo and a friendly message stating that an error occured, and please
> contact technical support? Can this be done just for any error.
>
> Also, can it be done for specific errors, so an error code could be
> printed to the user?
>
> Thanks,
> Max
There's error handling functions in php to allow you to catch error messages
and output whatever you want. I'm pretty sure it's somewhere in the manual
if not though google for "php error handling" and i'm sure you'll find lots
of sites explaining what needs to be done. IIRC it's just writing a
function to handle things and defining a few constants but it's been a long
time. It's not very difficult though for sure since i was able to manage
it,
gl,
peter
[Back to original message]
|