I am wondering if this is possible, and if so, then you can create a perl script that constantly monitors the / db file and then calls a routine to execute text processing if the file is modified. I am sure that this will be possible using sockets, but it should be used for the webchat application on a site running on a shared host, and I'm not sure that sockets will be allowed on it.
Main idea:
- create a listener for the chat file / database
- when the file is updated with a new message, call the subroutine
- the called routine will send a new message back to the displayed browser.
Thanks in advance.
file perl listener chat
Hussain
source share