RobertP Posted October 6, 2011 Share Posted October 6, 2011 is it possible to run php in the background from php? hmm, i mean like cli. exec('J:\local\php5\php.exe cron.php'); Quote Link to comment Share on other sites More sharing options...
Philip Posted October 6, 2011 Share Posted October 6, 2011 Erm, why? Quote Link to comment Share on other sites More sharing options...
thehippy Posted October 7, 2011 Share Posted October 7, 2011 I'm kind of guessing you intention that you want a cron service for Windows, but Windows already has a cron-like service called "Task Scheduler," there is a command line interface accessed via the at command and you'll find a "Task Scheduler" MS console in Control Panel > Administrative Tools which allows a bit more finesse. If you find yourself with lots of queue tasks you might want to setup a Message Queue Server like ActiveMQ to take in tasks and have your cron script process the queue every so often. If I'm totally off, you can use popen, here's an example. Quote Link to comment Share on other sites More sharing options...
Philip Posted October 7, 2011 Share Posted October 7, 2011 Main reason I ask is because you could also just include the file & use ignore_user_abort or just setup a cron Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.