How To Delay PHP Code On A Page Loading After Submit Form
- Forums
- PHP
- How To Delay PHP Code On A Page Loading After Submit Form
This Page Contains information about How To Delay PHP Code On A Page Loading After Submit Form By wallpaperama in category PHP with 0 Replies. [1265], Last Updated: Sat May 18, 2024
wallpaperama
Fri Apr 10, 2009
0 Comments
552 Visits
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