xenophobia Posted July 15, 2008 Share Posted July 15, 2008 I had download the scripts file from here: http://www.devpro.it/xmlsocket/ which using the flash' xmlsocket object to communicate with the server. I had a php5apahce2 server installed in winXP pro. So I do accordingly to the readme instructions which initialized the server sockets using this command (CMD): php -q Run_XMLSocketServer.php Which listening the port:2000 on local server. I had a client demo site: index.html which connect to this socket. When I click on the connect button, in my command prompt, I see this: New client on XMLSocketServer 127.0.0.1:1312 23 bytes received from client 127.0.0.1:1312 Client Disconnected 127.0.0.1:1312 I did not click on the disconnect button while it disconnected automatically for me. Also, I noticed the client's port number (1312) is change each time I connect. What is the problem? My browser is using flash player 9 and I tried on IE and FF and Safari, all is the same result. Any idea? Thanks in advanced. Link to comment https://forums.phpfreaks.com/topic/114780-xmlsockets/ Share on other sites More sharing options...
xenophobia Posted July 19, 2008 Author Share Posted July 19, 2008 Seems like I did not explain well my problem. Anyway, I had a new question which related to this topics. If I want to do an online instant communication within client (surfer), how can I do that? For example, under certain circumstance, an event from a client send a message to the server, the server catch the response and send the message to all the others client through web browser. Is something similiar with the xmlSocket in Flash. But is there any article or library for free? Just give me a redirect link will do, I do my own research. Thanks. Link to comment https://forums.phpfreaks.com/topic/114780-xmlsockets/#findComment-593991 Share on other sites More sharing options...
xtopolis Posted July 19, 2008 Share Posted July 19, 2008 I found this, it's a bit dated, but may contain what you're looking for. http://www.kirupa.com/developer/flash8/php5sockets_flash8.htm Link to comment https://forums.phpfreaks.com/topic/114780-xmlsockets/#findComment-594013 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.