how to get php to execute script after a get request

I have a PHP script that takes some time to execute. A Get Request is made with a variable defining the path of a file and the script them goes line by line within the file to perform data operations. If the user clicks the stop button the php script seems to not finish. How can I get the script to finish its work without the user needing to keep the page loading?
LVL 1
JPERKS1985Asked:
Who is Participating?
 
Ray PaseurConnect With a Mentor Commented:
ignore_user_abort() can do this for you.
0
 
Ray PaseurCommented:
Thanks for the points - it's a great question! ~Ray
0
All Courses

From novice to tech pro — start learning today.