php,socket and actionscript for multi-player

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
GiaTuan
Forum Newbie
Posts: 14
Joined: Sat Oct 01, 2011 1:19 am

php,socket and actionscript for multi-player

Post 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
mikeashfield
Forum Contributor
Posts: 159
Joined: Sat Oct 22, 2011 10:50 am

Re: php,socket and actionscript for multi-player

Post by mikeashfield »

I don't see a question in your post? If that's what you want to do though, that's cool.
maxx99
Forum Contributor
Posts: 142
Joined: Mon Nov 21, 2011 3:40 am

Re: php,socket and actionscript for multi-player

Post 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
GiaTuan
Forum Newbie
Posts: 14
Joined: Sat Oct 01, 2011 1:19 am

Re: php,socket and actionscript for multi-player

Post 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:
GiaTuan
Forum Newbie
Posts: 14
Joined: Sat Oct 01, 2011 1:19 am

Re: php,socket and actionscript for multi-player

Post 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
Post Reply