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
Yep I think so. Check:
http://www.php.net/manual/en/function.accept-connect.php
for listening info and note that you can use fsockopen to open a talking connection to a server.
=========================================== http://badblue.com/helpphp.htm Free small footprint web server for Windows
thanks for the reply. can fsockopen open a connection from the server (where the php script is residing) to a client PC? if it can, which php command sends data thru that socket connection. thanks again!