adhbvklwqdbviabjiawdnbij Posted September 24, 2011 Share Posted September 24, 2011 I have an action that will take a long time to finish, so how can I run this action in background? So I will not have to wait it ends... Quote Link to comment Share on other sites More sharing options...
the182guy Posted September 24, 2011 Share Posted September 24, 2011 Run it from the command line or a cron job. Quote Link to comment Share on other sites More sharing options...
adhbvklwqdbviabjiawdnbij Posted September 24, 2011 Author Share Posted September 24, 2011 Something like this? exec('theactioniwanttoexecute.php'); Quote Link to comment Share on other sites More sharing options...
adhbvklwqdbviabjiawdnbij Posted September 24, 2011 Author Share Posted September 24, 2011 This is not working.. Quote Link to comment Share on other sites More sharing options...
adhbvklwqdbviabjiawdnbij Posted September 24, 2011 Author Share Posted September 24, 2011 I'm trying: exec ("/usr/bin/php send_action.php >/dev/null &"); This file is on the same folder of send_action.php, but its not working... Quote Link to comment Share on other sites More sharing options...
Freedom-n-Democrazy Posted September 24, 2011 Share Posted September 24, 2011 This guys a notorious Help Vampire that abandons his threads without even thanking users that solve his problems. His name shouts vampire too. http://www.phpfreaks.com/forums/index.php?topic=344475.0 http://www.phpfreaks.com/forums/index.php?topic=344478.0 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.