|
-
Aug 2nd, 2008, 07:07 PM
#1
Thread Starter
Frenzied Member
winsock
I was wondering if there was any class for php that is like winsock.
-
Aug 4th, 2008, 03:36 PM
#2
Re: winsock
Yes there is...
http://www.google.co.uk/search?hl=en...G=Search&meta=
PHP Sockets are not as easy as winsock however, there are no events such as DataArrival.
PHP Sockets are best used for a socket client rather than a server (though is possible).
They have been around for a long time so there are plenty of examples out there if you have a search.
One other thing to note is if your using a free webhost, they tend to disable the use of PHP Sockets because of people using them for malicious purposes.
-
Aug 4th, 2008, 04:11 PM
#3
Re: winsock
The fsockopen function can be used for simple two way TCP connections. It lacks the granularity of PHP sockets but makes up for it in its simplicity.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|