Ok, here’s a question I can’t seem to figure out. Facebook, Meebo, and several other heavyweight AJAX pages have an interesting feature in their chat functions. If you monitor the console with firebug, you’ll notice their ajax periodical requests run continually (as long as the AJAX timeout, default is 300sec) until an update happens, at which point it returns the JSON and starts over on another continual request.
I know for a fact that meebo uses C and C++, but facebook is running PHP (kind of), is there a way to run an ajax request to a PHP script, that only returns data when the DB is modified? perhaps it could be done with PHP’s shell_exec()? Does anyone know of a shell script with this capability?
I’m building an new opensource, flexible, portable, and very lightweight AJAX (AJAJ to be more precise) instant messenger and was wondering if this would be an acceptable option. But first I have to understand if its even possible with standard technology!
Thanks!