markvaughn2006 Posted September 17, 2009 Share Posted September 17, 2009 I'm making a PHP game where you go to different locations and you can see who else is there, but if someone else comes there you won't see them unless the page is refreshed.. Someone mentioned to me there is a PUSH thing, but I think thats a little out of my league, I would hate to set the whole page to refresh every 2 seconds, would there be a way just to refresh the part of the page that shows who else is there? If not is there a big problem with refreshing the page every 2 seconds? like server load or something? Thanks!! Quote Link to comment https://forums.phpfreaks.com/topic/174641-solved-refresh-a-section-of-a-php-page/ Share on other sites More sharing options...
corbin Posted September 17, 2009 Share Posted September 17, 2009 You could do it with some pretty simple AJAX. As far as server load goes, eh, depends on a lot of things. Quote Link to comment https://forums.phpfreaks.com/topic/174641-solved-refresh-a-section-of-a-php-page/#findComment-920396 Share on other sites More sharing options...
kickstart Posted September 17, 2009 Share Posted September 17, 2009 Hi Doing it carefully with AJAX should only see a small part of the screen refreshed and a minimal server load. All the best Keith Quote Link to comment https://forums.phpfreaks.com/topic/174641-solved-refresh-a-section-of-a-php-page/#findComment-920403 Share on other sites More sharing options...
markvaughn2006 Posted September 17, 2009 Author Share Posted September 17, 2009 cool, thanks Keith Quote Link to comment https://forums.phpfreaks.com/topic/174641-solved-refresh-a-section-of-a-php-page/#findComment-920406 Share on other sites More sharing options...
MadTechie Posted September 17, 2009 Share Posted September 17, 2009 Topic Solved ? please click topic solved bottom left Quote Link to comment https://forums.phpfreaks.com/topic/174641-solved-refresh-a-section-of-a-php-page/#findComment-920414 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.