Posted by Jussi Rasku on 10/18/05 23:38
Dikkie Dik wrote:
> Can't you use some in-between storage?
> Like: the webpage puts a record in the database,
> Another process regularly checks for new entries in the database and
> acts if it finds a new one.
> Using this "token passing", the web process needs no access except to
> the database and the tv "listener" needs no web access.
Thanks for the tip, altough I don't like the idea of polling. However it
seems its the easiest way to do this nicely.
Perhaps I will do some kind of semaphore file the polling script checks
and the php script sets. That way there is no need for the polling sript
to handle the database everytime (shouldn't take too much system resources).
-Jussi
Navigation:
[Reply to this message]
|