Jump to content
xisto Community
Sign in to follow this  
jedaivokters

Who Knows How Web-based Chat Works? And How To Do It? like facebook chat

Recommended Posts

Why don't you have a look through the tutorials section on the forums. I've written a shoutbox tutorial, shoutbox being the new name for most browser-based chatrooms after the banning of most online chatrooms. It uses PHP, MySQL and AJAX (Javascript).Basically the way it works is, obviously you can't have live php running on the page as it is a server-side script. This is where ajax comes in. Instead of having to continuously keep refreshing the page to view the latest content ajax calls a php file in to the current document. So index.php loads up once and the page stays the same, ajax keeps updating a div on the page with the content output of chat.php without index.php having to refresh.

Edited by 8ennett (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.