Website Uptime Monitoring

This is the example from the Webscript's introductory video. It runs as a cron job and monitors the uptime of a website, sending a text message when the website goes down or comes back up.

Script Code