I need a function written in PHP.
The function will try to connect to a ip and a port and if the connection is accepted (another program is listening on that port) the function will close the connection and return bolean value true. If the no connection can be established the function will return false.
The parameters for the function are ip and port.
The function must have timeout setting, like 3 seconds. And return false if the time runs out.
So basically the function will only check if another remote program is listening on a specific port.
My budget are close to $30.