Detect if a server is up or down; Web Server, Game Server, any port


Monitoring Services is requires constant attention, so sys admins try to make the job easy by using a monitoring service. What if you wanted to monitor a service via a website. Well thanks to the best code language, php, there is a simple way to do this.

$ip = "youriphere";
$port = "yourporthere";
if (! $sock = @fsockopen($ip, $port, $num, $error, 5))
echo ‘<B><FONT COLOR=red>Offline</b></FONT>’;
echo ‘<B><FONT COLOR=lime>Online</b></FONT>’;

The above code will watch a service on a specific IP and on a specific port. Depending on the system ping the php code will echo “offline” or “online”. Simple.

What if you wanted to use images like a red button…

// Set the content-type
header("Content-type: image/gif");
$fontsize = 18;
if(@$_GET[‘fontsize’]) {
$fontsize = $_GET[‘fontsize’];
$font = ‘yourcustomfont.ttf’;
$text = @$_GET[‘text’];
// Create the image
$size = imagettfbbox($fontsize, 0, $font, $text);
$width = $size[2] + $size[0] + 8;
$height = abs($size[1]) + abs($size[7]);
$im = imagecreate($width, $height);
$colourBlack = imagecolorallocate($im, 255, 255, 255);
imagecolortransparent($im, $colourBlack);
// Create some colors
$white = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);
// Add the text
imagefttext($im, $fontsize, 0, 0, abs($size[5]), $black, $font, $text);
// Using imagepng() results in clearer text compared with

Or you can even use the first code example to echo html code for an image.

17 Great Tools for Web Development

I have consolidated a list of 17 great tools for web developers. When it comes to development you want to have the best tools available and you want to know how other people will perceive your creation. I give you my list:

WAVE WebAIM – Accessibility


WebAIM will determine the accessibility of your site or a file that you upload. The tool will provide visual feedback of a page’s accessibility.

Cynthia Says Portal – Standard checker and Accessibility


Cynthia Says is a WCAG 1.0 or Web Content Accessibility and Section 508 Checker. You can choose to emulate a browser to test different combinations of visitor browsers.

Site Valet – Standard Checker


Site Valet is another 508 Checker. Input your site and it will automatically analyze your markup and highlight possible accessibility problems. Warnings are shown where they arise.

Colorblind Web Page Filter – Colorblind emulator


As the name suggest this tool will show you what your page looks like to a wide range of common color blind impediments. If your site passes their standards you are able to display their logo for your visitors.

WDG HTML Validator – Validation


The WDG Validator will check your entire site’s markup. It is similar in many ways to the W3C Validation service. The checker will give you warning for valid but dangerous html such as unclosed tags. It will also issue warnings for undefined references.

W3C CSS Validation – CSS Validation


The W3C CSS Validation is the best tool to validate your CSS. Who would know better than the standard creator! Errors and warnings are issued for each problem found. A valid CSS brings more customers and higher search engine ranking.

W3C Link Checker – Link Validation


The W3C Link Checker will look for broken links. It will recursively search your entire site for every link mentioned. You can also tweak the depth that the tool will go.

Web Page Analyzer – Load time Optimization


This site will analyze your sites load times. Results are presented in seconds. Expect to see load times increased for images, but pages should load quickly.

Pingdom Tools – Performance tester


This tool will analyze your site’s performances. How long does it take to load a page or file? Pingdom will tell you. The load time of all objects are presented visually by color coded load bars.

Text Trust – Spell Checker


Text Trust will spell check your site and email you any errors. Why would visitors keep coming back to your site if you have missspellingss everywheres.

Unitest – Http response


Http Trace will show you how your server responds to the world and what is responds with. This could help troubleshoot issues or help you tweak your sever for search page optimization.

SE Browser – SE Viewer


Wonder how your site looks like to a search engine? Now you can know. Find out how you site looks to search engines.

W3C Semantics – XSLT Service


An Online XSLT 2.0 Transformation Engine.

Whois Lookup – whois


Did you register your Domain correctly? What can visitors learn about you personally? Check your Whois record.

Microsoft Audience intelligence – Demographics prediction


This tool will predict a users age, gender, and more. Its all based on online behavior. Give it a try.

Site Analytics – Traffic Estimation


You have to sign up unfortunately. You will see an estimated visitor count. If you don’t want to sign up, like I don’t, then use logging on your web server.

Basic Web Site Review – Basic


Learn basic information about your site. This tool will give you a neat score too!


With all these tools you should be able to learn a couple things about your site that you didn’t know before. If you use these tools to improve your site I promise you will see an increase in visitors. This is how the world sees you.