Page 1 of 1

Maximum execution time of 30 seconds exceeded

Posted: Mon Oct 30, 2006 2:40 am
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

Posted: Mon Oct 30, 2006 2:48 am
by itsmani1
see your php.ini file and check if its there

Posted: Mon Oct 30, 2006 3:20 am
by volka
Or let the script periodically increase the remaining time via set_time_limit()

Posted: Mon Oct 30, 2006 3:20 am
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

Posted: Mon Oct 30, 2006 3:22 am
by volka
You're using a shared server, i.e. you've rented some webspace with php support?

Posted: Mon Oct 30, 2006 3:28 am
by bissquitt
correct

Posted: Mon Oct 30, 2006 3:35 am
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.

Posted: Mon Oct 30, 2006 3:41 am
by bissquitt
that seems to work, thank you very much.

Posted: Mon Oct 30, 2006 6:34 pm
by RobertGonzalez
This may sound like a silly question, but why is your script taking more than 30 seconds to execute?