anoopsinghal Posted December 31, 2007 Share Posted December 31, 2007 Hi, I have created a PHP script that takes around 15-20 Mins in processing. The script runs completely but my browser times out after few mins and the background process is still running and the task is completed. I have sent out put at each and every step of the script that should be output after every 10sec to browser but my script is not printing any thing on the browser. Any kind of hel in this regard would be really helpful. Regards Anoop Quote Link to comment https://forums.phpfreaks.com/topic/83829-browser-timeout/ Share on other sites More sharing options...
jitesh Posted December 31, 2007 Share Posted December 31, 2007 Temporary mention "set_time_limit(0);" in first line of the code and check. Quote Link to comment https://forums.phpfreaks.com/topic/83829-browser-timeout/#findComment-426619 Share on other sites More sharing options...
anoopsinghal Posted December 31, 2007 Author Share Posted December 31, 2007 Hi Thanks for the response. I have mentioned this as well but still facing same problem. Regards Anoop Quote Link to comment https://forums.phpfreaks.com/topic/83829-browser-timeout/#findComment-426627 Share on other sites More sharing options...
jitesh Posted December 31, 2007 Share Posted December 31, 2007 In php.ini change maximum_execution_time (0 for unlimited). Restart webserver and check. Quote Link to comment https://forums.phpfreaks.com/topic/83829-browser-timeout/#findComment-426631 Share on other sites More sharing options...
anoopsinghal Posted December 31, 2007 Author Share Posted December 31, 2007 Hi. It is on a shared hosting environment and I don't have rights to change the parameter also my script is executing completely but the problem is my browser timed out. Regards Anoop Quote Link to comment https://forums.phpfreaks.com/topic/83829-browser-timeout/#findComment-426632 Share on other sites More sharing options...
rajivgonsalves Posted December 31, 2007 Share Posted December 31, 2007 use ini_set command http://php.net/ini_set Quote Link to comment https://forums.phpfreaks.com/topic/83829-browser-timeout/#findComment-426637 Share on other sites More sharing options...
anoopsinghal Posted December 31, 2007 Author Share Posted December 31, 2007 Hi, Well it is again to stop time out of PHP but my PHP script is running fine and get completed the problem is browser time out. Quote Link to comment https://forums.phpfreaks.com/topic/83829-browser-timeout/#findComment-426639 Share on other sites More sharing options...
rajivgonsalves Posted December 31, 2007 Share Posted December 31, 2007 hmm.. maybe you can use fork command http://php.net/manual/en/function.pcntl-fork.php and run the process in background and give the user the message that the process has been started... Quote Link to comment https://forums.phpfreaks.com/topic/83829-browser-timeout/#findComment-426640 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.