Function to open a TCP/IP socket
The FSOCKOPEN() function opens a TCP/IP socket. It returns a numeric pointer when the socket is opened successfully, or a -1 if unsuccessful. The <expC> is the hostname of the server, <expN> is the port number. Since the pointer is required to identify an open socket to other functions, always assign the return value to a memory variable.
The FCLOSE() function is used to close a socket which has been opened with FSOCKOPEN().
fp=fsockopen("www.server.com",80) if fp > 0 ... endif fclose(fp)