how do i increase the php execution time ??
@sam111 said:
how do i increase the php execution time ??
What do you mean by increasing PHP execution time?
You can do this:
ini_set('max_execution_time', 300); //300 seconds = 5 minutes
But I am not sure if this is what you mean…
yaa ini … how do i do that ?? i have creat a ini fine in my htdocs folder still it same execution time 20sec . i want 30 sec
@sam111 said:
yaa ini … how do i do that ?? i have creat a ini fine in my htdocs folder still it same execution time 20sec . i want 30 sec
You place this code on top of your PHP script, not on an ini file.
@ChrisPAR said:
@sam111 said:
yaa ini … how do i do that ?? i have creat a ini fine in my htdocs folder still it same execution time 20sec . i want 30 secYou place this code on top of your PHP script, not on an ini file.
If he is talking about php.ini then he can’t edit it.
@UnknownLolz said:
@ChrisPAR said:
@sam111 said:
yaa ini … how do i do that ?? i have creat a ini fine in my htdocs folder still it same execution time 20sec . i want 30 secYou place this code on top of your PHP script, not on an ini file.
If he is talking about php.ini then he can’t edit it.
No, the code I mentioned must be placed on top of PHP script, php.ini has NOTHING to do with this!
where is the php script ? i want increase the execution time 20 sec to 30 sec. htdocs?
@sam111 said:
where is the php script ? i want increase the execution time 20 sec to 30 sec. htdocs?
your php script is your .php file, which should be located on the htdocs folder as well!
you are talking about the index.php …
@sam111 said:
you are talking about the index.php …
Then what you are talking about, there are many .php files in this world and index.php is not just the .php file in the whole world wide web.
ini_set(‘max_execution_time’, 300); //300 seconds = 5 minutes
?>
is it right edited ?
@sam111 said:
<?php // Powered by Infinityfree.net include dirname(__FILE__).'/sitepro/index.php'; ?>ini_set(‘max_execution_time’, 300); //300 seconds = 5 minutes
?>
is it right edited ?
20 seconds is the maximum PHP execution time, and there is nothing that you can change it.
You can try using the premium hosting so there will be no PHP execution limits.
u r sure ??
any other way ?
@sam111 said:
any other way ?
You may wanna refer here:
https://forum.infinityfree.com/discussion/3719/max-execution-time
yes, he is sure https://forum.infinityfree.com/discussion/comment/12358
what you want to run more than 30 sec?
wordpress or?
You can optimize your code or page to be effective
check which script takes a lot of time, etc.
i want to run a mailing software. it requires max execution time 30 sec
@sam111 said:
i want to run a mailing software. it requires max execution time 30 sec
What’s the name of the mailing software script?