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..

Recommended Answers

All 5 Replies

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.

Edit the maximum_execution_time in your php.ini, default is 60 seconds.

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..

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...

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.