Twitter

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'); ...

Get CodeIgniter 1.7 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.