A Site Monitoring Widget with jQuery and cURL

725 Users read it.
by Dan Wellman

"Build a cool site-monitoring widget that allows you to monitor the status of multiple sites"

In this tutorial we’ll look at how to build a cool site-monitoring widget that allows you to monitor the status of multiple sites. If you maintain a large number of web sites checking that each one individually is up and running could be a time-consuming chore, but with this widget we can instantly see if any sites are down.

We’ll use jQuery to build the interface and communicate with the server and we’ll use PHP and the cURL extension to actually check each site is up and running by making a request to the specified sites and checking which response headers are returned. We’ll also be using MySQL to store the URLs of the site’s we’ll be monitoring; it’s not strictly required, there are a number of alternative storage methods we could use including a plain text file, a PHP array, a JavaScript array, etc, but MySQL is probably the most robust method and it means we can easily add new sites to monitor.

User Rating (Not rated)
0 reviews available
$3.39 USD

Technologies:JavaScript
Number Of Pages:12

Dan Wellman

Dan WellmanDan Wellman is an author and web developer based in the UK. His first book, Learning the Yahoo User Interface Library has just been published. Dan is an avid fan of all electronic music from old school hip hop to new school breaks and everything in between. On those rare moments away from a computer Dan enjoys spending time with his friends and family.

See All Postings From Dan Wellman >>

Follow us on twitter Subscribe to our RSS feed
Activate your free membership today | Login | Currency