I have a series of PHP scripts that I want to run in a particular order. I tried using
<?php
exec('file1.php');
exec('file2.php');
exec('file3.php');
?>
to accomplish this, but just got a series of errors. If I run them from the command line, they all work fine. How to fix this problem?
You can run it from the command line from your scripts, assuming you have root access.
Example:
I haven’t tested it, but it should work 🙂