• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

maximum execution time

i have to run my script at about 1 hour to get whole result but the execution time is just 30 seconds.i don't own the server.so how could i increase this limit.i red something about this
php_value max_execution_time 900000000
writing this line to htaccess could be a solution but it didn't work for me.any other ideas?
0
btocakci
Asked:
btocakci
  • 6
  • 5
1 Solution
 
cg_medistoxCommented:
If you create your own local php.ini file it should overwrite the one in the default folder on the server.

You only need to add this line though as everything else is read from the default php.ini and this line over writes the one placed in the default php.ini file.

I believe you just need to place the php.ini file in the document root
0
 
btocakciAuthor Commented:
i tried that too.but it didn't work.
0
 
cg_medistoxCommented:
It appears as thought your service provider may have locked down the ability to change the maximum execution time.

Are you running on a "value" server?
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
cg_medistoxCommented:
I have just read that the htaccess solution will not work on IIS, are you running on an IIS server?
0
 
btocakciAuthor Commented:
no it is apache.
0
 
cg_medistoxCommented:
I am very much aware that you have tried this already but please try this again because i can see no good reason why this would not work

In the folder where you want to run the script that is taking the time to run

create a file called .htaccess
enter this line
php_value max_execution_time 300

Again, i know you have tried this but i cannot see any good reason why it would not work from whati have read
0
 
btocakciAuthor Commented:
when i do what you say i get an internal service error because of the content of htaccess
0
 
cg_medistoxCommented:
can you post the content of the .htaccess file?
0
 
btocakciAuthor Commented:
php_value max_execution_time 90000000
0
 
cg_medistoxCommented:
try encasing the code

<IfModule mod_php4.c>
php_value max_execution_time 8000
</IfModule>

I dont think you need it set at 90000000 though...
0
 
btocakciAuthor Commented:
tried encasing code.still not working.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now