Welcome Guest, Not a member yet? Register   Sign In
time out limit
#1

[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
#2

[eluser]eoinmcg[/eluser]
try
Code:
set_time_limit  ( 0 );

more info here: http://php.net/manual/en/function.set-time-limit.php
#3

[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
#4

[eluser]InsiteFX[/eluser]
NOTE: If running in safe mode set_time_limit will not work!
Code:
if( ! ini_get('safe_mode'))
{
    set_time_limit(0);
}

InsiteFX
#5

[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
#6

[eluser]jasonjack[/eluser]
ohh this is why it is creating problem.. thanks guys for guiding me .. i will like to follow u..
#7

[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);




Theme © iAndrew 2016 - Forum software by © MyBB