homepage Welcome to WebmasterWorld Guest from 54.234.67.55
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library : Charter : Moderators: coopster & eelixduppy & jatar k

PHP Server Side Scripting Forum

    
Php Warning Alert Script
BlackRaven




msg:3554096
 12:01 am on Jan 22, 2008 (gmt 0)

Does someone know of a way or script that would email when a php warning is found on a page?

 

coopster




msg:3554101
 12:12 am on Jan 22, 2008 (gmt 0)

I know you didn't say you were doing this, but I'll repeat it here anyway ... never send your error messages directly to the browser on a production site, but send them to an error log. At least then you have record of the issues and you can resolve them. Another nice feature in PHP is custom error handling. You can set your own error handler and within your error handling functions you can do whatever you wish, including email yourself.

Error Handling and Logging Functions [php.net]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved