How to get a pop up notification of a PHP error

 So for sometime now, I've been doing Drupal/PHP development on my local machine. I'm a Mac user, and I use Growl quite a bit to keep aware of whats going on. Honestly at times its probably a productivity killer to know that I have 22 new emails, I was pinged in IRC, and my feeds were just updated, and the latest track in iTunes is something that I probably don't want to hear. So I've been spending some time thinking about how to best put this cool tool to work for me, and I kept coming back to growlnotify, a command line tool to post notifications.

My first though was, how to get this to tail some server logs for me, and how to take care of letting me know when servers had issues. But then I got to thinking that isn't really all that useful. Servers shouldn't go down, and if they do, they should notify me by email (which if I'm at the computer, Growl will pick up) and server logs? I just don't need that. The next logical conclusion was maybe to do some local tasks, like I don't know...say the PHP error log while I"m developing? That might actually be useful when I do something stupid, like get tired and call $node['body'] ( PHP Fatal error:  Cannot use object of type stdClass as array). 

Anyway, lo and behold, someone else has already done this for me. Check out the snippets here for more info on how to make this work. It's a bit tricky since growl won't send a notify until an end of file is reached, and tail -f just sends newline characters. The solution is to use a small python script to read the stdin, and then conver that into a full growlnotify command, and execute it. 

Thanks to this tip I now get notifications like this:

.

You may need to play with your error level to keep from getting splattered with notices, but I find this quite useful (especially for catching notices with Drupal 6).

Re: How to get a pop up notification of a PHP error

Are you still using this or have you refined it? I'd want something that I don't have to execute tail every time I start programming. A process running in the background that can grep realtime for new lines with certain keywords and growl them and add it to my startup items, would be ideal. My current solution has been poor - using Geektool from http://projects.tynsoe.org/en/geektool/ to display the last bit of /var/log/apache2/error_log on my desktop, but that's always covered by programs I'm using.

BTW, comment_notify module would be nice. I'll totally forget I made this post later.

How to get a pop up notification of a PHP error

All these methods are perfectly fine and have their place, but I wanted to tie my websites into the Growl notifier on my Mac. This appeals to me for a couple reason 70-648 braindumps. First, it’s more immediate than email or RSS. My newsreader refreshes every thirty minutes, and my mail client checks every ten. If my database crashes or there’s some other major problem on my site I want to know about it now. On the other hand, Growl notifications are passive 642-691 braindumps. They pop up on my screen, and if the message isn’t important they disappear a few seconds later without me having to intervene. Instant messages are more distracting. They open up a whole new window that I have to switch to and close 352-001 braindumps. With Growl I can quickly glance at the notification and do something about it or keep working at my current task.

Re: How to get a pop up notification of a PHP error

http://gorn.ch/archive/2007/01/10/tail-f-to-growl.html

I use that, it seems to work, I can of course just append an & to the end to have it run in the background

Re: How to get a pop up notification of a PHP error

a pop up notification is a big trouble, when smth. is offers to use custom essay writing services etc.

Re: How to get a pop up notification of a PHP error

porno izle, sikiş, amcık, seks videoları seyret, erotik video, amatör, sakso, götten, sikiş videolar, sex video
porno izle -
sex -
porno -
sikiş

Re: How to get a pop up notification of a PHP error

Re: How to get a pop up notification of a PHP error

I been having some trouble with my web hosting server with PHP. I think its my configuration though.

Re: How to get a pop up notification of a PHP error

It is currently setup to use the template engine.The PHP error log is really hard on the eyes. So error log parser that would make things a little prettiest.it is pretty easy to change.we can manipulate the parser and templates to
work without my engine in about 5 min

Re: How to get a pop up notification of a PHP error

Save up to 75% with handbags on sale at bagmalls.com.Fashion handbags shop offering a great selection of stylish discount handbags including Jimmy Choo Handbags Discount,Miumiu Handbags Sale,Dior Handbags Wholesale,and stylish discount handbags.you can purchase online.

Re: How to get a pop up notification of a PHP error

Whatever your hair type is, CHI Flat Iron creates the look you want.Buy the cheapest CHI Hair straighteners protects,CHI Straightener Black your hair while styling. Enjoy free shipping.

Re: Just Do It

GHD Hair Straighteners on sale at GhdsZone.com.
Welcome to buy uk ghds & ghd hair products,cheap ghd iv mk4 black and purple,you will enjoy free shipping and big discount. Buy now!

Re: Just Do It

Uggs on sale! Looking for grey ugg boots Check out our
discounted Ugg boots on our Ugg boots sale site! You might want to consider Australian sheepskin boots from Salesuggboots.com.

ghd Hair Straighteners

We guarantee we provide the cheapest ghd, ghd Hair Straighteners,ghd straighteners, ghd hair tools in the market and 100% Quality Guarantee.

Re: ghd Hair Straighteners

Re: How to get a pop up notification of a PHP error

How to get a pop up notification of a PHP error on custom essay

Re: How to get a pop up notification of a PHP error

Thanks for great tips and guidelines!
Web design

Re: How to get a pop up notification of a PHP error

anne bebek The bayan giyim has erkek giyim  female ev tekstili Muslim havlu émigré oto aksesuar based in doğal ürünler Washington, bitkisel çay DC, Munich bitkisel krem and  bitkisel sabun the  pet shop At the , the alışveriş US government is fantazi giyim preparing for sütyen the  korse Cuba to the bayan iç giyim tiny erkek boxer of Palau oto ses ve müzik sistemleri several  oto bakım and motosiklet From hamile giyim the köpek South köpek maması  to köpek elbisesi the köpek şampuanı Caribbean, köpek tasması to Southern China, to kedi the heart of kedi maması Central Asia, kedi şampuanı to iskenderun corner haber of China have mağaza captured  Nil Karaibrahimgil  Twitter,  Steel Prices linked these Marble Prices disparate Silver Prices  never Price of Raw Materials

ugg boots

good post.

Re: How to get a pop up notification of a PHP error

Hi,
What a great site and informative posts! I will bookmark this page. Thanks

Company SWOT Analysis

Re: How to get a pop up notification of a PHP error

one day i went shopping outside,and in an ed hardy store,I found some kinds of ed hardy i love most they are Your website is really good Thank you for the information Abercrombie and Fitch clothing shop Abercrombie and Fitch clothing shop Abercrombie and Fitch clothing store Abercrombie and Fitch clothing store Cheap Abercrombie Fitch clothing Cheap Abercrombie Fitch clothing discount Abercrombie Fitch clothing discount Abercrombie Fitch clothing

timberland roll top boots

Christian Louboutin Sale

2010 New Christian Louboutin Shoes Arrived! you can buy christian louboutin pumps ,louboutin sale Lowest Price And Fine Quality

ugg classic cardy

Find Cheap ugg cardy bootsUGG boots On Sale ,bargain sale now!ugg classic tall,100% Authentic UGG Australia Boots!Find Cheap Sheepskin ugg argyle knit IN Ecwarm Boots.com!

Re: How to get a pop up notification of a PHP error

I'm quite sure this will be of great help to all those struggling to solve this PHP functionality. Thanks for sharing this with all the users. :)

Re: How to get a pop up notification of a PHP error

Re: How to get a pop up notification of a PHP error

I'm quite sure this will be of great help to all those struggling to solve this PHP functionality. Thanks for sharing this with all the users. :)
Degree | Degree Program | Phd degree

Re: How to get a pop up notification of a PHP error

Thanks for sharing. i really appreciate it that you shared with us such a informative post..
Online Diploma Program | Online degree schools

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.