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
bissquitt
Forum Newbie
Posts: 7 Joined: Sun Oct 29, 2006 4:59 am
Post
by bissquitt » Mon Oct 30, 2006 2:40 am
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
itsmani1
Forum Regular
Posts: 791 Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:
Post
by itsmani1 » Mon Oct 30, 2006 2:48 am
see your php.ini file and check if its there
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Mon Oct 30, 2006 3:20 am
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 » Mon Oct 30, 2006 3:20 am
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
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Mon Oct 30, 2006 3:22 am
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 » Mon Oct 30, 2006 3:28 am
correct
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Mon Oct 30, 2006 3:35 am
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 » Mon Oct 30, 2006 3:41 am
that seems to work, thank you very much.
RobertGonzalez
Site Administrator
Posts: 14293 Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA
Post
by RobertGonzalez » Mon Oct 30, 2006 6:34 pm
This may sound like a silly question, but why is your script taking more than 30 seconds to execute?