Re: The Grand Multiplayer Thread
Quote:
Originally posted by Ed Mack
Sockets
This is the fastest and best method. It requires that you have some sort of server sitting listening on some computer. This is usually a program of some kind, and typically requires more programming knowledge than the polling method. This can be acheived with Java, PHP (requires uncommon special settings)...
Does anyone have any examples of sockets implemented using PHP? I found some good Perl examples (written by vaykent) via the sticky at the top of the XML forum.
Is there some performance issue with Perl or PHP? Is favoured the moock java server better?
1 Attachment(s)
socket server info - php server as well.
http://www.flashkit.com/board/showth...44#post2218044
A thread I had posted long ago that contains a php socket server.
There is a spot in there that tells you how you can check to see if you can support socket servers with php.
Socket servers only accept tcp/ip connections, not udp.
notes: if you run a swf on your local machine, you can define the IP/dns the socket can connect to, else for running the swf from a server the socket in the swf can only connect to the server it is located on by using "" as the ip.
For those people who think the variables need to be sent in xml format, they do not! Stop giving people the wrong information.
Sorry not to have posted earlier but I'm way too busy at school, and working now and then on my game.
attached is a FLA, that connects to a socket server. Its crude but is decent enough.