The Little Guy Posted February 28, 2010 Share Posted February 28, 2010 how can I run a php script as a daemon on a linux server? Link to comment https://forums.phpfreaks.com/topic/193603-php-daemon/ Share on other sites More sharing options...
ToonMariner Posted February 28, 2010 Share Posted February 28, 2010 http://tinyurl.com/ybxea9x Link to comment https://forums.phpfreaks.com/topic/193603-php-daemon/#findComment-1019170 Share on other sites More sharing options...
The Little Guy Posted February 28, 2010 Author Share Posted February 28, 2010 I have already looked at those... Link to comment https://forums.phpfreaks.com/topic/193603-php-daemon/#findComment-1019263 Share on other sites More sharing options...
trq Posted February 28, 2010 Share Posted February 28, 2010 Where exactly are you stuck then? Link to comment https://forums.phpfreaks.com/topic/193603-php-daemon/#findComment-1019265 Share on other sites More sharing options...
The Little Guy Posted February 28, 2010 Author Share Posted February 28, 2010 how do I start one, and then be able to close putty, and keep it running, or enter in other commands... Link to comment https://forums.phpfreaks.com/topic/193603-php-daemon/#findComment-1019266 Share on other sites More sharing options...
trq Posted February 28, 2010 Share Posted February 28, 2010 how do I start one, and then be able to close putty, and keep it running, or enter in other commands... This has nothing to do with php. Typically, you would write an init script for the service, but at its simplest you would simply execute the daemon in a background process. eg; ./daemon.php & Link to comment https://forums.phpfreaks.com/topic/193603-php-daemon/#findComment-1019275 Share on other sites More sharing options...
The Little Guy Posted February 28, 2010 Author Share Posted February 28, 2010 Awesome! that woks! what I read, is that you need to run it via some other script but adding the "&" at the end worked! Link to comment https://forums.phpfreaks.com/topic/193603-php-daemon/#findComment-1019299 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.