Reply to Re: Friendly PHP errors

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация