Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-22-2009, 05:09 PM   PM User | #1
adarshakb
Regular Coder

 
adarshakb's Avatar
 
Join Date: Jun 2009
Location: Silicon valley of india
Posts: 247
Thanks: 11
Thanked 1 Time in 1 Post
adarshakb has a little shameless behaviour in the past
Exclamation Connection B/W 2 browsers

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.

Albert Einstein
-----------------------------------------------------
My Blog songs

Last edited by adarshakb; 10-22-2009 at 05:11 PM..
adarshakb is offline   Reply With Quote
Old 10-22-2009, 05:24 PM   PM User | #2
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,687
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
Start with a web server and go from there.
__________________
Fumigator is offline   Reply With Quote
Old 10-22-2009, 05:34 PM   PM User | #3
adarshakb
Regular Coder

 
adarshakb's Avatar
 
Join Date: Jun 2009
Location: Silicon valley of india
Posts: 247
Thanks: 11
Thanked 1 Time in 1 Post
adarshakb has a little shameless behaviour in the past
Quote:
Originally Posted by Fumigator View Post
Start with a web server and go from there.
Yep started with PhP.Can some one tell m the way it would theoratically work.. like only the linking part.. and can it be done using PhP ONLY or i need any other skills
__________________
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.

Albert Einstein
-----------------------------------------------------
My Blog songs
adarshakb is offline   Reply With Quote
Old 10-22-2009, 05:41 PM   PM User | #4
oesxyl
Master Coder


 
Join Date: Dec 2007
Posts: 6,682
Thanks: 436
Thanked 890 Times in 879 Posts
oesxyl is a jewel in the roughoesxyl is a jewel in the roughoesxyl is a jewel in the rough
Quote:
Originally Posted by adarshakb View Post
Yep started with PhP.Can some one tell m the way it would theoratically work.. like only the linking part.. and can it be done using PhP ONLY or i need any other skills
javascript, more exactly you can do this using ajax and/or json. Usualy you also need to know many other things more or less.

best regards
oesxyl is offline   Reply With Quote
Old 10-22-2009, 05:48 PM   PM User | #5
CFMaBiSmAd
Senior Coder

 
CFMaBiSmAd's Avatar
 
Join Date: Oct 2006
Location: Denver, Colorado USA
Posts: 2,744
Thanks: 2
Thanked 256 Times in 248 Posts
CFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the rough
Browsers, no matter how hard you try, can only function as the client in a HTTP request/response client-server arrangement - http://en.wikipedia.org/wiki/HTTP

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.
CFMaBiSmAd is online now   Reply With Quote
Old 10-22-2009, 05:49 PM   PM User | #6
adarshakb
Regular Coder

 
adarshakb's Avatar
 
Join Date: Jun 2009
Location: Silicon valley of india
Posts: 247
Thanks: 11
Thanked 1 Time in 1 Post
adarshakb has a little shameless behaviour in the past
Quote:
Originally Posted by oesxyl View Post
javascript, more exactly you can do this using ajax and/or json. Usualy you also need to know many other things more or less.

best regards
hmmm.. thks.. any specific references anyone can provide me which shows how to connect in real time.. like tutorials etc..?
__________________
Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.

Albert Einstein
-----------------------------------------------------
My Blog songs
adarshakb is offline   Reply With Quote
Old 10-22-2009, 06:45 PM   PM User | #7
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,687
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
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.

As CFMaBiSmAd smartly put it, a browser requests information from a Server, usually a Web Server using the HTTP protocol, and can then interact with a user via HTML and Javascripting. Two different computer's browsers can interact with the same Web Server using this HTTP protocol, and in this way they can play a game of chess. But you as the web developer will have to utilize this pipeline to get the job done. This typically involves HTML, CSS, Javascript, and a server language such as PHP, ASP, ColdFusion, etc.
__________________
Fumigator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:32 PM.


Advertisement
Log in to turn off these ads.