Guys help me in pointing what to learn to have a connection b/w two players... playing on 2 different browsers a game say chess and interlink their display of chess board so that it reflects in realtime the changes made.
Assume that i have all the codes for the game. But i want to transmit data without the user needing to refresh again and again for latest moves. I u get the point...
like wise what to learn to provide a chat option their.. it too involves realtime update as above so i guess for both i goto learn the same
Thanks to all replies
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.
----------------------------------------------------- My Blogsongs
Last edited by adarshakb; 10-22-2009 at 05:11 PM..
You need to cause the client (browser) to make periodic http requests to the server in order to get the current information. If you use AJAX, you can then update the information on the page without refreshing the whole page.
If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Thanked 637 Times in 625 Posts
You really need to get it out of your head that you can "connect" two browsers to each other. That's not how it works at all. It's not like you're stringing a 10-base-T cable between two computers to get an IPX connection established to play Doom II.