Hi,
I would like to implement the following scenario.
I have a database that contains longitude and latitude information about different nodes.
I would like to write a PHP script that checks if the table has a new entry, and if there is a new entry fetch the data and pass it to another script that uses the long/lat data to refresh the Google Map.
What would be the best way to solve this issue?
thanks in advance.
PHP script for checking database updates
Moderator: General Moderators
Re: PHP script for checking database updates
use auto_increment or add a "date_added" column to your table.
Re: PHP script for checking database updates
I have solved this issue. However, I am not sure on how to run the PHP script as "daemon" or in the background that periodically checks whether the DB is updated ...
Re: PHP script for checking database updates
Check out cron jobs for scheduled tasks...