execution time problem
Moderator: General Moderators
- itsmani1
- Forum Regular
- Posts: 791
- Joined: Mon Sep 29, 2003 2:26 am
- Location: Islamabad Pakistan
- Contact:
execution time problem
Hi
I want to set execution time of script like if want execute a script for 200 seconds and for other scripts it should be normal as fixed in configuration is it possible.
Like if have file a.php and file b.php
i want to set time 200 seconds for a.php
and for b.php i want to work normally as set in php settings
Please suggest me solution
Note: my server is shared.
thank you
I want to set execution time of script like if want execute a script for 200 seconds and for other scripts it should be normal as fixed in configuration is it possible.
Like if have file a.php and file b.php
i want to set time 200 seconds for a.php
and for b.php i want to work normally as set in php settings
Please suggest me solution
Note: my server is shared.
thank you
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Or by using .htaccess
Code: Select all
php_value max_execution_time "200"There are 10 types of people in this world, those who understand binary and those who don't
- itsmani1
- Forum Regular
- Posts: 791
- Joined: Mon Sep 29, 2003 2:26 am
- Location: Islamabad Pakistan
- Contact:
thank you
one last question
can i set it for one script file or this will be for whole folder or dir?
and also Please see the code:
i want the above code to run only 200 seconds and after that it should exit
is this possible?
thanks
one last question
can i set it for one script file or this will be for whole folder or dir?
and also Please see the code:
Code: Select all
$i=1;
while($i > 0)
{
echo 'yes<BR/>';
}is this possible?
thanks
I haven't done this before but it should work. Use
http://httpd.apache.org/docs/2.0/mod/core.html#files
instead of <Directory> directive
http://httpd.apache.org/docs/2.0/mod/core.html#files
instead of <Directory> directive
There are 10 types of people in this world, those who understand binary and those who don't
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact: