sleep()


today i had a script and the script ran some shell commands to install some deamons, so once the script was completed it created some files, so the next step in my script was to edit those files. but the problem i came up with is that there was a delay in running the shell scripts, it took longer to created the directories than to complete executing the php script. so the php script completed first so the php script could not edit the files because they were not created fast enough so i wanted to delay the php script. sort of like putting a stop clock on it.

well if you are in the same situation, you can use the sleep() function in php