Wouldn't it be great to let your clients receive instant notifications about their site status using twitter? Imagine that a site has gone down, your check tool traces the error and sends that information to twitter. This way your clients will know, at that very moment, what is happening.
Now, thanks to Simon Maddox, this is a very easy thing to do—first copy the code from this site (it is also on the Wiki, see the second link):
Copy the code into a file called twitter
inside the application/libraries
folder. Now call this library as always:
$this->load->library('twitter'); $this->twitter->auth('twitter_account','password'); $this->twitter->update('We have detected an error in your site, we are working to repair it right now.');
Sounds pretty good, doesn't it? Thanks to Simon for this great and easy-to-use library. I think it is full of uses.