Skip to content
Advertisement

Tag: wakeup

PHP, wake up process which is sleeping

I have two PHP scripts which are running at the same time. One of them (SleepingScript.php) calls the sleep function. The other script (WakeScript.php) should be able to wake up the sleeping script if necessary. How can I achieve this? Here is some code that explains better the situation. SleepingScript.php WakeScript.php Answer This can be done using the process signal

Advertisement