Jump to content

[SOLVED] How to get a php script to run on a specified date?


ted_chou12

Recommended Posts

For the convenience, I stored users age as well as their dob, dob is fine, because it stays the same, but age does not, it changes at the dob every year, so is it possible to run a script that automatically updates the age when dob arrives?
Thanks Ted
If you really want to update the age, you could use [b]crontab[/b] (only on Linux) if your host has enabled it, to run [b]linx[/b] (text browser on Linux). Linx can access your website to run the script.

Basically, crontab runs a command at specified intervals, so you can go through all the DOBs and update the age of someone if they are older.

If you have cPanel, there is a control for crontab.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.