hi, can php send data thru a specified port to a client computer? can it listen to a port too? it doesn't matter on the implementation of php (whether command-line, etc.), but is the above possible? thanks.
-Mick
sunya
Read the manual chapter on "network functions."
Yes, see the listen function for opening a listening socket.
http://www.php.net/manual/en/function.listen.php
And see the fsockopen function for opening a simple file-based socket.
=========================================== http://badblue.com/helpphp.htm Free small footprint web server for Windows
can php be run constantly on a server without closing, so that it can constantly listen to a port and execute certain functions on demand?
thanks!