News Feed
Jobs Feed
Sections




Recent Jobs

News Archive
CatsWhoCode.com:
How to easily monitor your web server using PHP
February 08, 2010 @ 13:48:31

In a new post to the CatsWhoCode.com blog Jean-Babtiste Jung walks you through the creation of a simple monitoring script written using just PHP that can tell you if your web site is up and responsive.

In order to make sure that your website is always available to the public, you have to monitor it. In this tutorial, I'll show you how you can easily create a monitoring script that will check your website availability and send an email or sms alert to you if it isn't.

They have a snippet of code (about 15 lines long) with a function you can call to check a remote host's connection and check the returned data for a certain string. This can not only ensure that your site is responsive but also that it's not responding incorrectly. You could even use this to hit a certain monitoring page of your site to check for certain things (like database connection problems).

0 comments voice your opinion now!
monitor webserver tutorial socket



Similar Posts

DevShed: The Call Magic Function in PHP 5

DevShed: Defining the Core Structure of a PHP Blogger

Chris Renner's Blog: Gerrymandered Code: Extending Zend_Registry to globalize session vars

ProDevTips.com: File Uploads with PHP Doctrine

PHPBuilder.com: A Twist In Namespaces


Community Events









Don't see your event here?
Let us know!


wordpress zendframework zend phpunit codeigniter microsoft windows facebook release drupal opinion security framework conference developer job doctrine feature symfony extension

All content copyright, 2010 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework