brooksh Posted December 19, 2007 Share Posted December 19, 2007 How can I get a page to run in the background? I have a page that takes about 2 minutes to run and I don't want a user to wait until the script processes. How can this be accomplished? Quote Link to comment Share on other sites More sharing options...
taith Posted December 19, 2007 Share Posted December 19, 2007 AJAX would be your best bet... in simplicity... ajax is javascript, running php :-) Quote Link to comment Share on other sites More sharing options...
nitation Posted December 20, 2007 Share Posted December 20, 2007 Try learning AJAX, and ur problem shall be solved. Or post your php here to confirm Quote Link to comment Share on other sites More sharing options...
Jessica Posted December 20, 2007 Share Posted December 20, 2007 Mootools is a good JS library with Ajax support. But the user would still have to wait to see the results if you use ajax. You could use a cron job if you want it to run regularly. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted December 20, 2007 Share Posted December 20, 2007 I think this is a case where if you describe what your page does and why it requires such a long processing time, a solution that addresses the problem can be found. As jesirose just stated, if your page is dependent on user supplied input, they will need to wait anyway and what AJAX does do for a web page won't address the processing and waiting problem. Quote Link to comment Share on other sites More sharing options...
Jessica Posted December 20, 2007 Share Posted December 20, 2007 But you would be able to display a pretty loading graphic (http://www.ajaxload.info/) for them to look at while it loads instead of the blank screen 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.