I seen Winsocks in C++ I want to do the same with php. Can anyone shed some light on the subject?
+2
A:
PHP has a sockets library, which is fully documented. It provides very similar functionality as Winsock.
bobbymcr
2010-02-19 04:46:25
Wow! Who'd have thought??
Christian Payne
2010-02-19 04:56:07
A:
PHP is mainly know as the language for the web development, but you would be surprised to see that it can be used to even create desktop softwares.
You need WinBinder to create desktop applications with PHP. Best of luck :)
Relevant Info: PHP Sockets
Sarfraz
2010-02-19 04:48:16
A:
As bobbymcr has said, all the basic socket and network functions (DNS lookups, long2ip etc) are exposed in PHP and well documented.
It also has functionality to cope with multiple concurrent operations (the *_select() functions).
If you are writing a server daemon, then you might find this class useful:
http://www.phpclasses.org/browse/package/5758.html
C.
symcbean
2010-02-19 13:04:04