Page 1 of 1

php,socket and actionscript for multi-player

Posted: Thu Nov 24, 2011 3:23 am
by GiaTuan
Currently, I have code of transmitting and receiving information between php and actionscript2.I want to make a multi-player game.Many people will connect to the server.
I'm thinking if upload swf and php to free server,I need to use the socket in php and actionscript code?
Swf will be in the same place with php.Swf will send mysql query string to php.
thank

Re: php,socket and actionscript for multi-player

Posted: Thu Nov 24, 2011 6:01 am
by mikeashfield
I don't see a question in your post? If that's what you want to do though, that's cool.

Re: php,socket and actionscript for multi-player

Posted: Fri Nov 25, 2011 1:32 am
by maxx99
GiaTuan wrote: I'm thinking if upload swf and php to free server,I need to use the socket in php and actionscript code?
Swf will be in the same place with php.Swf will send mysql query string to php.
It doesnt matter where do you keep your SWF it will be downloaded, cached and "executed" on user side anyway :)

You can use sockets, but HTTP requests will also do the trick :)
Remember that there are some limitations when it comes to SOCKETS and PHP - especially for free servers

Re: php,socket and actionscript for multi-player

Posted: Sat Nov 26, 2011 12:49 am
by GiaTuan
So, just upload swf on server and actionscript use sendAndLoad to send and receive between php and flash without socket :?: :?
But I have a problem when running swf from the folder named "htdocs" of xampp.
A message box:
...the following local application on your computer or network:C:\xamapp\htdocs\Login.swf
to let this application communicate with th internet,click Setting...
I click Settings button->firefox go to www.macromedia.com/go/settmgr_locsecy_en_author->select Edits location-> swf can run.
I was thinking when no network connection then the server that contains my php will be disclosed.
How do I disable or hide the dialog box "setting ..."? :roll:

Re: php,socket and actionscript for multi-player

Posted: Sun Nov 27, 2011 10:36 pm
by GiaTuan
Can you tell me more about the limitations of SOCKETS and PHP,flash when using free server?
I found some code NetBean java server and flash.Server of NetBeans java how?I'm interested in server $0