Tjk
08-13-2006, 11:18 AM
Hi. I'm looking to create a page which will update in real time as values in a mysql database change without having to actively refresh the page but I'm not sure which web languages I should look to for this. I've wondered if placing a Java or Flash applet in the page which then runs a query to the database may work.
I know Java can be used to place a query but it lacks the same dynamic visual creation as Flash offers. Although I'm not sure how to have it constantly querying the database.
Using Flash I know I could export any form data by using getURL and linking to a php processing script but I'm still not sure on what other language I'd need to use to actively update the page with the changing mysql row values... it's on a Linux server so no ASP here. Any ideas on the language to do this?
With both I'm still unsure if they have the option to keep a constant connection open to the mysql database detecting a change in the database values. Is this actually possible?
The other part of this is the actual server side processing. At the moment I'm using CRON to constantly reload a PHP script which updates all the mysql values in real time. I could use PHP Forking which seems a very attractive option or I could create a PERL server process. Which one would be more efficient?
Any comments on any part of this problem will be appreciated. Hopefully I can piece together all the advice I can get from you gurus and start heading in the right direction. :thumbsup:
I know Java can be used to place a query but it lacks the same dynamic visual creation as Flash offers. Although I'm not sure how to have it constantly querying the database.
Using Flash I know I could export any form data by using getURL and linking to a php processing script but I'm still not sure on what other language I'd need to use to actively update the page with the changing mysql row values... it's on a Linux server so no ASP here. Any ideas on the language to do this?
With both I'm still unsure if they have the option to keep a constant connection open to the mysql database detecting a change in the database values. Is this actually possible?
The other part of this is the actual server side processing. At the moment I'm using CRON to constantly reload a PHP script which updates all the mysql values in real time. I could use PHP Forking which seems a very attractive option or I could create a PERL server process. Which one would be more efficient?
Any comments on any part of this problem will be appreciated. Hopefully I can piece together all the advice I can get from you gurus and start heading in the right direction. :thumbsup: