Long Script, emailed when done?
Moderator: General Moderators
Long Script, emailed when done?
I have a script that is very time consuming, what I want to do is when the user submits the information, a php script is run which then sends results to the inputted email address. I want the php script to run just on the server though, with no interaction with the user, meaning they don't have to stare at a progress bar for 20 minutes while the script runs. Any clues on how to do this?
- Buddha443556
- Forum Regular
- Posts: 873
- Joined: Fri Mar 19, 2004 1:51 pm
There are plenty of ideas in Program Execution Functions.
Probably need these:
Have you considered using a cron to run the process? With a cron you could limit the number of processes running to suit your resources and schedule processing for off-peak times. Maybe a bit more complicated to code though.
Probably need these:
Code: Select all
set_time_limit(0); // 0 = unlimited time
ignore_user_abort(true);