Answer the question
In order to leave comments, you need to log in
Running a PHP script in the background?
Good day, please tell me how to be, the programmer asks to constantly run the PHP script on which he raises the socket, to run in the background I do it through nohup php files/sockets/sockets.php &, but after an indefinite time the script may fall, are there any then more reliable ways to run php script in background?
Answer the question
In order to leave comments, you need to log in
Run not php directly, but sh-file like
while true
do
php files/sockets/sockets.php
done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question