It is a quite simple system standing script written in PHP. It makes use of the fsockopen perform to open a connection to the designated IP tackle on the designated port utilizing the TCP protocol.
If the response is constructive the script will report the port/service as up. If after a specified time the question will get no response, the script will report the port/service as down.
This script is good for Internet hosting Suppliers/Resellers who:
- Would not have the choice of displaying their supplier’s service standing.
- Would not have the programming information to intergrate with their supplier’s service standing API.
- Don’t just like the look of their supplier’s standing web page and wish to create their very own.
It’s additionally supreme when you have your individual devoted field, or domestically hosted server and would identical to a easy and straightforward solution to view the present standing of a server/port.
Simply get the IP tackle of the server you wish to question together with the port quantity and enter it into the script the place indicated and the script will simply work. You’ll be able to both hyperlink to the web page straight, embody it in one other web page utilizing PHP embody or embody it in your web page utilizing an iframe.
The code is extensively commented and may (i hope!) be straightforward sufficient to comply with.
It makes use of CSS for styling so once more ought to be straightforward to switch if you want it to match your web site’s design, I’ve tried to make it as easy trying as attainable so it ought to match a variety of website designs with out requiring an excessive amount of modification.