I know I can set up a cron for each of the individual PHP files, but is there a way for a cron to run one PHP file that calls a list of files in a specific order. For example, It should only call the second file if the first file has completed.
Share
Try using php’s
systemfunction.You can find the doc here : http://www.php.net/manual/en/function.system.php
And you can use the return_value parameter and compare it against FALSE to check for failure
You can also use
shell_exec(http://www.php.net/manual/en/function.shell-exec.php) which has almost the same effect