adam84 Posted July 18, 2008 Share Posted July 18, 2008 I have a site where users are able to internally send mail to each other. Would it be considered a good idea to use ajax to check and see if the user have any new mail. As of now, every time the user loads a new page, I check for any new mail and if there is I display “New Mail”. But if I created a function, that would check every x amount of seconds, would that be a waste of resources, a waste of querying the database? I really like the idea of using ajax to do that, but again not all ideas are efficient. I much rather code it efficiently, so the site runs much quicker, than a cool idea that makes the site run slow. Thanks Link to comment https://forums.phpfreaks.com/topic/115460-a-good-idea/ Share on other sites More sharing options...
JasonLewis Posted July 18, 2008 Share Posted July 18, 2008 Have it an option. It would be a good feature, people would be impressed. Just make it a user defined option. Link to comment https://forums.phpfreaks.com/topic/115460-a-good-idea/#findComment-593547 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.