Jump to content

PHP Shoutbox refresh method


Mudsaf
 Share

Recommended Posts

Hello, i have my shoutbox online

http://mudsaf.info/shoutbox.php

Its currently refreshing with session that checks if latest shout has changed. (Really bad method). What method you would recommend for refreshing since i want to use less bandwith than refreshing the whole shoutbox everytime. So if you understanded anything i tried to explain.Shoutbox updates every 2 seconds and checks if latest message has been updated. Uses only bits of bandwith. When there is new shout it updates whole shoutbox data using about 20kb data.

Link to comment
Share on other sites

Is this an AJAX application? I'd suggest having PHP send only send the usernames and messages without all the HTML and then have Javascript read the data and put it into the page the right way.

Link to comment
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
 Share

×
×
  • Create New...