How to remove the error Fatal error: Maximum execution time of 30 seconds exceeded in

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agarwalsunitadhn
    New Member
    • Jan 2008
    • 82

    How to remove the error Fatal error: Maximum execution time of 30 seconds exceeded in

    Hi
    I have a problem that whenever i fetch a large amount of data from database then it shows the following error with a part of result:
    Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\fps \report7.php on line 95.

    and refreshing that page . we got the complete data.

    If you have any suggestion that how to fetch complete data at a time then please ..

    thanks
  • JKing
    Recognized Expert Top Contributor
    • Jun 2007
    • 1206

    #2
    A quick fix would be to use set_time_limit( int $seconds) to increase the max execution time.

    I am curious as to why it is taking so long for your script to finish executing. When you say a large amount of data how much data are we talking about?

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Setting the time limit to 0 will remove any limit.

      If your query is exceeding a couple of seconds, you need to optimize it.

      Comment

      • agarwalsunitadhn
        New Member
        • Jan 2008
        • 82

        #4
        thanks Markus. It will take time but really works

        Comment

        Working...