how to increase the maximum execution time

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Deepthi_Tanguturi
Forum Newbie
Posts: 3
Joined: Wed Nov 09, 2011 11:24 pm

how to increase the maximum execution time

Post by Deepthi_Tanguturi »

how to increase the maximum execution time.i modified maximum execution time in php.ini file.But it is not modified.It displays default execution time.Is there any methods.
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: how to increase the maximum execution time

Post by social_experiment »

“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Deepthi_Tanguturi
Forum Newbie
Posts: 3
Joined: Wed Nov 09, 2011 11:24 pm

Re: how to increase the maximum execution time

Post by Deepthi_Tanguturi »

I changed the max_execution_time in php.ini file.i restarted the wampserver.But it does not changed.what is the problem.
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: how to increase the maximum execution time

Post by social_experiment »

I don't know how WAMP works but in xampp there are multiple php.ini files (on my installation at least). The correct one for xampp is located inside apache/bin , maybe wamp works the same way?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: how to increase the maximum execution time

Post by pickle »

Run a page with phpinfo();. The output from that will tell you what php.ini file(s) you need to change.

I've found it's usually best to change this limit on a script by script basis. That is, leave it at the default & if you have a page you know will take longer, call set_time_limit() on that particular page.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply