Networking: Portscan
ben (contact me)
This is a simple class that can be used to check whether TCP/IP ports are opened for connection.
It attempts to connect to a given port of a machine in the Internet with a given IP address.
The class returns the information of whether the machine accepted the connection within a given timeout period.
The class comes with a separate script with a list of well known ports for common TCP/IP services and also ports used by Trojan horses to simplify the check of eventual security holes.
Click here for detailed information about this class on phpclasses.org