Basically i am wanting to update a field every 5 minutes per user.
For example i have 10 users, and a field called count.
Every 5 minutes i want count to be count + 1
I know this can be done via cron in php, however after having a look through stack at a few similar questions, many answers have been 'it can not be done due to cron being server bases and jquery/ajax being clientside'.
Another issue i may face is being 1 user may update every 4.5 minutes or even 4 minutes and the remaining 9 updating every 5.
Is there a way to do this per user using ajax? Along with displaying a countdown timer until their next 'update'
Im not too sure what approach to take, any insight/thoughts would be great
For example i have 10 users, and a field called count.
Every 5 minutes i want count to be count + 1
I know this can be done via cron in php, however after having a look through stack at a few similar questions, many answers have been 'it can not be done due to cron being server bases and jquery/ajax being clientside'.
Another issue i may face is being 1 user may update every 4.5 minutes or even 4 minutes and the remaining 9 updating every 5.
Is there a way to do this per user using ajax? Along with displaying a countdown timer until their next 'update'
Im not too sure what approach to take, any insight/thoughts would be great