This is a very simple system status script written in PHP. It uses the fsockopen function to open a connection to the designated IP address on the designated port using the TCP protocol.
If the response is positive the script will report the port/service as up. If after a specified time the query gets no response, the script will report the port/service as down.
This script is ideal for Hosting Providers/Resellers who:
It’s also ideal if you have your own dedicated box, or locally hosted server and would just like a simple and easy way to view the current status of a server/port.
Just get the IP address of the server you want to query along with the port number and enter it into the script where indicated and the script will just work. You can either link to the page directly, include it in another page using PHP include or include it in your page using an iframe.
The code is extensively commented and should (i hope!) be easy enough to follow.
It uses CSS for styling so again should be easy to modify if you would like it to match your website’s design, I’ve tried to make it as simple looking as possible so it should match a wide range of site designs without requiring too much modification.
|Last Update||July 10, 2009, 12:18 pm|
|Compatible Browsers||Firefox, IE7, IE8|
|Software Version||PHP 5.x|