PHP Growl Relay

0

I think Growl is a pretty awesome little notification app, I use it for absolutely everything and thought I would cook up a simple way for anyone to relay growl messages to their nodes – even from remote events.

What you need :

  • A Local web server (with PHP of course)
  • Remote machine must have curl (unless you are good with javascript)

Download the class.growl.php from google code and toss it in your web root.  Create a new file called growler.php or growlnotify.php.  Within it you can paste the following :

Set your webserver to listen on some obscure port and forward it through your router.  You can now use curl to post messages from a remote location to all of the nodes you specified in the associative array above  as such :

curl -d “message=some message `date`” http://your-web-server-ip:port/filename.php

This is a simplified explanation how I wrote Growl notifications for Asteristickies.

Have fun.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

Security Code: