bmdsherman Posted October 9, 2009 Share Posted October 9, 2009 I have a question and I'm not exactly sure which board this should go in. If I navigate to a php file and stop loading the page before the script finishes executing, does the script continue to execute or does it stop? Quote Link to comment https://forums.phpfreaks.com/topic/177041-php-general-question/ Share on other sites More sharing options...
shane18 Posted October 9, 2009 Share Posted October 9, 2009 You make a request.. then the php file runs withen like a mili second then sends the data to your browser... so i doubt it Quote Link to comment https://forums.phpfreaks.com/topic/177041-php-general-question/#findComment-933469 Share on other sites More sharing options...
bmdsherman Posted October 9, 2009 Author Share Posted October 9, 2009 I know that normally, but I have a php file that usually takes around 10 seconds to execute and I was wondering if I have to sit around an wait, or just call the page and close my browser. Quote Link to comment https://forums.phpfreaks.com/topic/177041-php-general-question/#findComment-933478 Share on other sites More sharing options...
trq Posted October 9, 2009 Share Posted October 9, 2009 Take a look at ignore_user_abort(). Quote Link to comment https://forums.phpfreaks.com/topic/177041-php-general-question/#findComment-933481 Share on other sites More sharing options...
bmdsherman Posted October 9, 2009 Author Share Posted October 9, 2009 thanks! Quote Link to comment https://forums.phpfreaks.com/topic/177041-php-general-question/#findComment-933482 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.