Jump to content
Sign in to follow this  
Mudsaf

PHP Shoutbox refresh method

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.

Share this post


Link to post
Share on other sites

Domain is changing atm

http://mudsaf.info/shoutbox.phpORhttp://mudsaf.info/mudsaf/shoutbox.php

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

I would suggest a longer refresh time also. You can use 150% less bandwidth just by changing the time from 2 to 5 seconds.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...