time out limit |
[eluser]MianUsman[/eluser]
Hi All, i m running a simple php file on my server and its not giving me error of time out because i have set it to zero before starting my script. but when i run this same code thorugh codeigniter it gives me error for time out either i put limit to zero OR not, can you guys give me some hint for how do i run script for unlimited time in codeigniter? Thanks in Advance Regards Usman Abdul Razzaq
[eluser]eoinmcg[/eluser]
try Code: set_time_limit ( 0 ); more info here: http://php.net/manual/en/function.set-time-limit.php
[eluser]MianUsman[/eluser]
i have tried it out but as i mentioned in my original post code within codeigniter always give me error for timeout either i put this line before starting script OR not. what i can do else can you give me some other hint Thanks for you reply Regards Usman Abdul Razzaq
[eluser]InsiteFX[/eluser]
NOTE: If running in safe mode set_time_limit will not work! Code: if( ! ini_get('safe_mode')) InsiteFX
[eluser]eoinmcg[/eluser]
codeigniter doesn't set any timeout limit. there's a few of things you can do: - make sure you're not running php in safemode. safemode ignores the set_time_limit() function. - check that no other code is being executed that is changing set_time_limit - check your error logs - post the code in question here to have a closer look btw, if you're running apache with you can set the value in your .htaccess - php_value max_input_time 600
[eluser]jasonjack[/eluser]
ohh this is why it is creating problem.. thanks guys for guiding me .. i will like to follow u..
[eluser]Unknown[/eluser]
[quote author="MianUsman" date="1286820984"]Hi All, i m running a simple php file on my server and its not giving me error of time out because i have set it to zero before starting my script. but when i run this same code thorugh codeigniter it gives me error for time out either i put limit to zero OR not, can you guys give me some hint for how do i run script for unlimited time in codeigniter? Thanks in Advance Regards Usman Abdul Razzaq[/quote] set_time_limit(1000000); |
Welcome Guest, Not a member yet? Register Sign In |