Maximum execution time of 30 seconds exceeded

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
bissquitt
Forum Newbie
Posts: 7
Joined: Sun Oct 29, 2006 4:59 am

Maximum execution time of 30 seconds exceeded

Post by bissquitt »

is there a way to increase the amount of time before the page will time out and return this error?

My page does a bit of number crunching and I need to get around this.

Thnx
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

see your php.ini file and check if its there
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Or let the script periodically increase the remaining time via set_time_limit()
bissquitt
Forum Newbie
Posts: 7
Joined: Sun Oct 29, 2006 4:59 am

Post by bissquitt »

I am not aware of there being a php.ini on my site.

I only have one file in the folder and that my .php file
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

You're using a shared server, i.e. you've rented some webspace with php support?
bissquitt
Forum Newbie
Posts: 7
Joined: Sun Oct 29, 2006 4:59 am

Post by bissquitt »

correct
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Then it depends on the webserver configuration, i.e. what your provider is inclined to allow.
Have you tried set_time_limit()? It might be disabled as well but in this case you will get an error message.
bissquitt
Forum Newbie
Posts: 7
Joined: Sun Oct 29, 2006 4:59 am

Post by bissquitt »

that seems to work, thank you very much.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

This may sound like a silly question, but why is your script taking more than 30 seconds to execute?
Post Reply