I have searched a lot and now I am in confuse. I want to do background process for moving photos facebook to my server. moving photos works fine. but now I want to do it using background process(if user close the browser process still works till it done). I have used below code.
exec("move-background.php > /dev/null &");
It doesn't works. move-background.php contains the code of moving photos. plese explain me how to do background process in php and please give the extra setting for Heroku. because heroku doesn't provides settings for PHP. Explain me in detail if possible.
I reefered Running continuous PHP applications on free Heroku but it is not understandable for me. I am new in cmd plese help me
我对php的后台进程了解不多,但是我建议您使用名为“ ignore_user-abort”和“ max_execution_time ”的php_ini设置。但是您必须小心使用这些设置,否则脚本将无限运行。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.