Share this on del.icio.us
  • Digg this!
  • Stumble upon something good? Share it on StumbleUpon
  • Submit this to DesignFloat
  • Bump this on DesignBump
  • Moo this on DesignMoo!
  • Blend this!
  • Share this on del.icio.us
  • Digg this!
  • Stumble upon something good? Share it on StumbleUpon
  • Submit this to DesignFloat
  • Bump this on DesignBump
  • Moo this on DesignMoo!
  • Blend this!
  • How to easily monitor your web server using PHP

    How+to+easily+monitor+your+web+server+using+PHP" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="sexy-digg"> <a
href="http://digg.com/submit?phase=2&url=http://www.catswhocode.com/blog/how-to-easily-monitor-your-web-server-using-php&title=How+to+easily+monitor+your+web+server+using+PHP" rel="nofollow" class="external" title="Digg this!">Digg this!</a></li><li
class="sexy-stumbleupon"> <a
href="http://www.stumbleupon.com/submit?url=http://www.catswhocode.com/blog/how-to-easily-monitor-your-web-server-using-php&title=How+to+easily+monitor+your+web+server+using+PHP" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="sexy-designfloat"> <a
href="http://www.designfloat.com/submit.php?url=http://www.catswhocode.com/blog/how-to-easily-monitor-your-web-server-using-php&title=How+to+easily+monitor+your+web+server+using+PHP" rel="nofollow" class="external" title="Submit this to DesignFloat">Submit this to DesignFloat</a></li><li
class="sexy-designbump"> <a
href="http://designbump.com/submit?url=http://www.catswhocode.com/blog/how-to-easily-monitor-your-web-server-using-php&title=How+to+easily+monitor+your+web+server+using+PHP&body=Prerequisites%0D%0AMaybe%20I%27m%20stating%20the%20obvious%2C%20but%20the%20PHP%20script%20has%20to%20be%20on%20a%20different%20server%20than%20the%20one%20used%20for%20the%20website%20you%27d%20like%20to%20monitor.%20If%20the%20script%20is%20hosted%20on%20the%20same%20server%20as%20your%20site%2C%20then%20it%20becomes%20pretty%20useless%3A%20In%20fact%2C%20if%20your%20server%20is%20down%20the%20script%20will%20not%20be%20ab" rel="nofollow" class="external" title="Bump this on DesignBump">Bump this on DesignBump</a></li><li
class="sexy-designmoo"> <a
href="http://designmoo.com/submit?url=http://www.catswhocode.com/blog/how-to-easily-monitor-your-web-server-using-php&title=How+to+easily+monitor+your+web+server+using+PHP&body=Prerequisites%0D%0AMaybe%20I%27m%20stating%20the%20obvious%2C%20but%20the%20PHP%20script%20has%20to%20be%20on%20a%20different%20server%20than%20the%20one%20used%20for%20the%20website%20you%27d%20like%20to%20monitor.%20If%20the%20script%20is%20hosted%20on%20the%20same%20server%20as%20your%20site%2C%20then%20it%20becomes%20pretty%20useless%3A%20In%20fact%2C%20if%20your%20server%20is%20down%20the%20script%20will%20not%20be%20ab" rel="nofollow" class="external" title="Moo this on DesignMoo!">Moo this on DesignMoo!</a></li><li
class="sexy-webblend"> <a
href="http://thewebblend.com/submit?url=http://www.catswhocode.com/blog/how-to-easily-monitor-your-web-server-using-php&title=How+to+easily+monitor+your+web+server+using+PHP&body=Prerequisites%0D%0AMaybe%20I%27m%20stating%20the%20obvious%2C%20but%20the%20PHP%20script%20has%20to%20be%20on%20a%20different%20server%20than%20the%20one%20used%20for%20the%20website%20you%27d%20like%20to%20monitor.%20If%20the%20script%20is%20hosted%20on%20the%20same%20server%20as%20your%20site%2C%20then%20it%20becomes%20pretty%20useless%3A%20In%20fact%2C%20if%20your%20server%20is%20down%20the%20script%20will%20not%20be%20ab" rel="nofollow" class="external" title="Blend this!">Blend this!</a></li><li
class="sexy-reddit"> <a
href="http://reddit.com/submit?url=http://www.catswhocode.com/blog/how-to-easily-monitor-your-web-server-using-ph

    PrerequisitesMaybe I’m stating the obvious, but the PHP script has to be on a different server than the one used for the website you’d like to monitor. If the script is hosted on the same server as your site, then it becomes pretty useless: In fact, if your server is down the script will not be able to run and will not let you know. The best solution is of course a dedicated server, but a home server can be ok as well. Shared web hosting like those provided by Hostgator or WpWebHost have a low price, but most don’t allow you to set up cron jobs, so be careful if you plan to buy.The last part of this tutorial will show you how to get sms alerts using Gmail. Please note that depending on your location and cellular phone provider, this part of the tutorial may not work.1. Creating…

    You Might Also Like...

    • WordPress File Monitor Screenshot

      WordPress security monitoring and diagnosis

      742 readersThe three components of information security are: Confidentiality, Integrity and Availability (CIA). If you’ve followed the steps my previous tutorial, you’ll have come a long way towards ensuring all three. But you’ll always need to keep an eye on things – remember, no site is hack proof. Here are some tools to verify the integrity

    • Get to know every line of your comments.php WordPress theme file

      265 readersThere is one WordPress theme file that I almost never touch when working on a theme: comments.php. I usually style WordPress comments via the CSS sheet, and that’s that. Well, there’s a lot you can do to customize and extend WordPress comments if you just know how. Nettuts has published a comprehensive tutorial on how the

    • PHP $_SERVER variables are not safe for use in forms, links

      283 readersA common security mistake I see WordPress plugin authors (and PHP coders in general) make is using $_SERVER['PHP_SELF'] or $_SERVER['REQUEST_URI'] as the action of a form or part of an anchor’s href attribute. This is not safe to do, and opens your code up to XSS (cross-site scripting) exploits. Common example: <form action="<?php echo $_SERVER['PHP_SELF'];

    • Random Header Tutorial

      How to Make Random Header Images?

      373 readersYou are using a neat WordPress theme with an image header but want to have multiple images that you can randomize on your blog? Here is how to go about it… STEP 1 – Editing Images Make all your header images that you want to randomize of the same size (dimensions) and format. For example,

    • How to remove the link to parent pages when using wp_list_pages in WordPress navigation

      1500 readersRecently I was working on a client’s WordPress website and he made an interesting request, that I am actually surprised we don’t see more often. He wanted the top links on his navigation bar to not be live links, and only the sub-pages should actually link to pages on his site. In this case the top

    • How to: Create a fbshare.me shortcode

      597 readersSocial networks are everywhere. I am sure you're on facebook. Well why not at a facebook share script to your site?

    • Backing up your WordPress database with WP-DB-Backup

      1773 readersI emphasized the importance of backing up in my basic security tutorial, but I discovered all of the backup tutorials I found were out of date. So here’s a tutorial on backing up your WordPress database with the terrific WP-DB-Backup plugin. The great thing about this plugin is that you can have it automatically send

    • How to rename widgetized sidebars in Wordpress

      353 readersYou can manage multiple sidebar widgets in WordPress. To do so, you go to the Widgets page in the Admin, and select the Sidebar you want to manage. If you have 1 widgetized sidebar, the name “Sidebar 1″ is not a big deal for managing it. But what if you have 5 or more,

    • How to set up Wordpress on a Wampserver

      312 readersRecently, someone asked me how to set up a local Wamp server on their computer so they can test Wordpress sites locally before uploading and editing online. MakeUseOf nicely explained what a Wamp server is and how to set it up. I wanted to expand their explanation to include setting up Wordpress. What is this Wamp

    • Modern Business 3 DARK Email (Newsletters)

      515 readersThis premium HTML email template is a perfect solution for photographers anywhere. Designed to compliment the ultra successful Modern Business 3 template available here – it echos the styling, buttons and even all 8 colors in 3 different layout...