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
php,socket and actionscript for multi-player
Moderator: General Moderators
-
mikeashfield
- Forum Contributor
- Posts: 159
- Joined: Sat Oct 22, 2011 10:50 am
Re: php,socket and actionscript for multi-player
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
It doesnt matter where do you keep your SWF it will be downloaded, cached and "executed" on user side anywayGiaTuan 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.
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
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 ..."?
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 ..."?
Re: php,socket and actionscript for multi-player
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
I found some code NetBean java server and flash.Server of NetBeans java how?I'm interested in server $0