this is just a simple one
/*
* File call Index.php
*/
<?php
function checkPort($host,$port)
{
$online = @fsockopen($host, $port, $errno, $errstr, 1);
if ($online)
return "<font color='Green'>Online";
else
return "<font color='red'>Offline";
}
' This calls the function and display it...