Page 1 of 1

Communicating with EXE

Posted: Thu Jan 27, 2005 2:40 pm
by dwfait
Hi all again. Would it be possible for PHP code to communicate via TCP/IP, or better, UDP, with an EXE on a port such as 1000, or 5000?

Posted: Thu Jan 27, 2005 2:43 pm
by feyd
yes... the "exe" would have to open and listen to such port.. and be allowed to by the OS/firewall. fsockopen() can open the port via TCP. I don't know about connected via UDP.

Posted: Thu Jan 27, 2005 2:45 pm
by dwfait
And then after youve opened the connection with fsockopen(), you would write to it like a file? writestream? or writestring?

Posted: Thu Jan 27, 2005 2:47 pm
by feyd
why not try it, or read the docs.. ;)