Is it possible to call a client method from server using AMFPHP?
For example if there is a Flash chat app with PHP backend. Everytime a new chat is logged from one of the clients, server would call update in all of the clients?
Is it possible to call a client method from server using AMFPHP?
For example if there is a Flash chat app with PHP backend. Everytime a new chat is logged from one of the clients, server would call update in all of the clients?
You are thinking it backwards. Server doesn't update the client on time or event basis. Client need to send request periodically, and server responds.
In order for the server to broadcast events to your flash client, it would have to have a constant connection, which is not how amfphp works. Your best bet would be to either set the client to periodically check amfphp for changes and act accordingly, or to look into a java-based server like Flash Media Server or SmartFoxServer.