Solved

how to get php to execute script after a get request

Posted on 2009-04-13
2
260 Views
Last Modified: 2012-05-06
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?
0
Comment
Question by:JPERKS1985
  • 2
2 Comments
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 24132415
ignore_user_abort() can do this for you.
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 24141166
Thanks for the points - it's a great question! ~Ray
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question