News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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


blog comments powered by Disqus

Similar Posts

Jurian Suilman's Blog: Use 3rd party modules in Zend Framework 2

DevShed: PHP Statements and Beginning Loops

Icant.co.uk: How to create thumbnails with PHP and gd

Mike Naberezny's Blog: Wrapping PHP Functions for Testability

SitePoint PHP Blog: How to Avoid 404s and Redirect Old URLs in PHP


Community Events











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


framework podcast hack language release install security package component opinion facebook hhvm series unittest code introduction symfony2 overview composer application

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