Hi
I'm working on my own instant messenger. This will not use a dedicated chat server, but instead each client will have it's own built in.
The client will contact my site, executing a script will will then see if anyone is currently hosting a server or not.
My script will read an ini file, read an ip address/port and then try to connect and see if the connection works. Once it's determined that the connection is ok, it will write the IP

ort to my program for the client to connect to that address.
So far I've found 3 methods for doing this and none of them like working full time.
Sometimes it works, then it just stops for no aparent reason. I've spent all day on this and now I'm at the point where I want to thrown my pc out the window, and come to the USA to destroy my host's server
OK, this is my script so far:
Now the problem I am having is theses following 3 methods for checking the connection:
1: Works in the original script it came from but does not work now in mine.
Original Working Version
2: Came from php's manual itself. Works on Windows, never on my site.
Then we have 3: Original version from php's manual - Doesn't work on windows, once worked on my site and then stopped working altogether
Can anyone help me?
The rest of my project depends upon this script being able to check an IP/Host/port number for a working connection.
-Turboz