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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.