Image

Imagelaotzu02 wrote in Imagephp 😦tired

Listens: Kakashi/Zabuza fighting in background

Sockets

Well, I've kinda looked over some of the basics in sockets w/ PHP, but I'm not sure exactly the limitations of em'. What I'd like to do, is create a persistent connection for small-time gaming, including basic chat functionality.

Now, I'd like to do this w/ Flash, but it requires a socket-server to connect to... which I don't exactly have or know too much about. I've read a little on it, and it mentions that socket-servers are built in a base langauge such as C and then installed at root level on the server.

I'm not asking how to do anything with Flash, really, but moreso what is possible with PHP. Would I be able to use PHP to create a persistent connection that could send and receive data to and from a separate file (i.e. an .SWF)? I know how to work with non-real time type games, but when it comes to using sockets and such to handle a constant flow of information, I'm just not sure how to go about things.

Any information on using sockets and whatnot, and the limitations would be appreciated. And PLEASE don't tell me to rtfm, because I have... and it obviously hasn't helped enough.