I am setting up a cron job to run a single PHP script which will include several other PHP scripts. I'm doing it this way so that each script will only run when the previous one is finished executing.
The problem is, I don't necessarily have full control over the content of all the PHP scripts included and therefore, what files are included in those and what variables and classes are used.
I would like to be able to unset or destroy everything set by the previous PHP script before running the next. Is there are way of doing this?
Or perhaps a better solution?
Thanks