PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Conor Mac Aoidh's Blog: OS X: Audio Alerts for PHP Errors

Note: This article was originally published at PHPDeveloper on 23 June 2010.
PHPDeveloper

In a new post to his blog today Conor Mac Aoidh talks about a way he's developed to get audio alerts whenever PHP errors pop up in your scripts using the swatch tool.

Kae posted today about tackling this problem under Linux, but I've found that it's quite a different task under OS X.

It also uses some additional Perl modules (like Date::Calc and Date::Manip) to set up swatch. From there it's just a matter of adding a few lines to a configuration file to watch for the errors and sound the "bell". A few bash scripts will need to be added to correctly start the service too.