PHP background process

I wrote php irc bot, but I need it to work in the background. With that, there would be no shots or so. What is the best way to do this?

Thanks and respect.

+6
php bots background-process
source share
3 answers

Take a look at the following website. There is a fairly detailed explanation of how to write PHP daemons.

http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/

+3
source share

Run it in screen , then separate. You can then exit the terminal and reconnect to the screen session.

+2
source share

I use something similar:

nohup php /path/to/script.php > /dev/null 2> /dev/null& 
+1
source share

All Articles