I need a (php hopefully) function to check to see if a telnet server is up, and I have no clue where to start looking.
Given an IP, it tries to connect to a telnet server, and returns true if the server is up.
If this is too difficult, return true if the IP is online.
If anyone knows the code or where I can find it, I'd appreciate it.