hi there, i want to change parameter "max_execution_time" in my php.ini file,but i don't have direct access to it.so,how can do it through code.Is there some script for this? thanks...
According to the [man]ini[/man] section of the manual, you can set max_execution_time either in php.ini, in an .htaccess or httpd.conf file, or within scripts (via [man]ini_set[/man]). You can also change the maximum execution time with [man]set_time_limit[/man].
hi,
if ur file is on server then u have to find .htaccess file in ur www root directory
u can set this variable at there ,
check the syntax to add that value.
Try this at the start of your PHP code:
ini_set("max_execution_time", "some number here");
using whatever number you need.
hi Ashley,thax fr reply... if i write
ini_set("max_execution_time", "0");
then will the max_execution_time becomes infinite.
I don't believe so, I think for this one you have to set some value that is high enough for your task.
actually,i've used
set_time_limit(0);
it's working fine with no time limit,i was looking fr alternative.thanx.
Try it and see if it works for you.