[ask] socket programming in PHP ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cordyceps
Forum Newbie
Posts: 1
Joined: Tue Sep 27, 2011 3:58 am

[ask] socket programming in PHP ?

Post by cordyceps »

Hello,

I wanna ask something.

Can php use in socket programming? For the example is chatting system. I wanna build some games that the client will use Java and the server use PHP (CGI). If you've ever do like this, please share it to me?

Thanks.
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Re: [ask] socket programming in PHP ?

Post by Mordred »

Yes, you can.

I have an old and abandoned (but working) open source project you can check for reference:
Philtron - a filtering HTTP proxy

Socket manual:
http://bg.php.net/sockets
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: [ask] socket programming in PHP ?

Post by Weirdan »

http://www.pinetd.com/ - php networked daemon framework. I know there is a DNS server implemented on top of that, and I think there were FTP and SMTP servers implemented as well.
Post Reply