I have the following bash script that runs 3 php scripts in order and only starts the next script once the previous one is complete:
#!/bin/bash php -f one.ph