6

I've wrote a php irc bot, but i need it to work in the background. With this there'd be no quits or so. What is the best way to do this?

Thanks and Regards.

3 Answers 3

3

Take a look at the following website. There is a pretty descend explanation on how to write PHP daemons.

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

Sign up to request clarification or add additional context in comments.

Comments

2

Run it in screen, then detach. You can then quit the terminal and re-attach to the screen session later.

Comments

1

I use something similar:

nohup php /path/to/script.php > /dev/null 2> /dev/null&

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.