943,553 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 706
  • PHP RSS
Aug 9th, 2008
0

Error: on PHP page...

Expand Post »
Hello friends...

I got one error ,when my login page is loading...
Fatal error:maximum execution time of 30 seconds exceeded in ../../../login.php

What would i do for preventing this..
Thanks in Advance.
Shanti..
Similar Threads
Reputation Points: 137
Solved Threads: 162
Posting Virtuoso
Shanti C is offline Offline
1,641 posts
since Jul 2008
Aug 9th, 2008
0

Re: Error: on PHP page...

php.ini has a value to set the maximum execution time. In the .ini, it's max_execution_time. For your script, it would be set_time_limit ($seconds).

Although if you have an execution time of over 30 seconds, you might have a problem with your script somewhere.
Reputation Points: 12
Solved Threads: 6
Light Poster
Demiloy is offline Offline
48 posts
since Aug 2008
Aug 9th, 2008
0

Re: Error: on PHP page...

Edit the maximum_execution_time in your php.ini, default is 60 seconds.
Reputation Points: 65
Solved Threads: 10
Posting Pro
mackone is offline Offline
586 posts
since Aug 2008
Aug 9th, 2008
0

Re: Error: on PHP page...

Using set_time_limit(0) in your script will make the maximum execution time to 'infinity'. This usually happens if you are processing large number of data or if one of the loop in your script has failed..
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Aug 11th, 2008
0

Re: Error: on PHP page...

thanks for your replies...

And is there any coding tips to avoid this problem
or
generally any coding tips to load our page fastly...
Tel me any ideas if you have...
thanks in advance...
Reputation Points: 137
Solved Threads: 162
Posting Virtuoso
Shanti C is offline Offline
1,641 posts
since Jul 2008
Aug 11th, 2008
0

Re: Error: on PHP page...

Don't have such a big page. Seriously, if you have a page needing more than 30 sec. to load, it's just gotta be way too bulky.
Reputation Points: 12
Solved Threads: 6
Light Poster
Demiloy is offline Offline
48 posts
since Aug 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Php variable inside JS code
Next Thread in PHP Forum Timeline: Renaming Web extentions





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC