I was thinking of implementing real time chat using a PHP backend, but I ran across this comment on a site discussing comet:
My understanding is that
mod_php is not the only way to use PHP. You can use fastcgi. PHP must be compiled with --enable-fastcgi.
--enable-fastcgi
PHP as FastCGI: http://www.fastcgi.com/drupal/node/5?q=node/10