For example, there is a very simple PHP script which updates some tables on database, but this process takes a long time (maybe 10 minutes). Therefore, I want this script to
You can make the PHP script run every 20 minutes using a crontab file which contains the time and what command to run in this case it would be the php script.