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.
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/
Run it in screen , then separate. You can then exit the terminal and reconnect to the screen session.
I use something similar:
nohup php /path/to/script.php > /dev/null 2> /dev/null&