how do you start the script though?
its not going to keep starting itself
im guessing you would be using a browser to trigger the script, but then you need to keep the browser window open, and refresh the page occasionally.
if you dont want the script to stop, set the time limit to 0, and look at ignore_user_abort()
still, if the server crashes and needs to be restarted, your script isnt going to start itself back up again.
if your website gets lots of traffic, you could just use every page request to trigger a script which will check when the last time the other script was ran, and if its time for it to run again. if so, use exec() to spawn a new process in the background. if not, do nothing.
but if your website doesnt get any visitors for a while, your "cron job" wont get started. maybe thats acceptable for your situation, maybe not.
if you did something like check the last time it was ran, you will need to be careful to avoid race conditions. otherwise you could end up starting 2 or more processes if you get a few hits from visitors at the same time.