Maximum execution time of 60 seconds exceeded in

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swatig655
    New Member
    • Mar 2013
    • 1

    Maximum execution time of 60 seconds exceeded in

    when i m running my php script i m getting the error-----Maximum execution time of 60 seconds exceeded in ---

    so hw to fix this fatal error
  • Niheel
    Recognized Expert Moderator Top Contributor
    • Jul 2005
    • 2432

    #2
    This occurs because your script is running longer than the maximum amount of time allotted to a php script in the php.ini settings. Check with your host to find out where your php.ini file is located, edit the setting and restart the webserver.

    max_execution_t ime is the setting you'll want to change


    To find out what your current max_execution_t ime setting is:
    Code:
    <?php 
     ini_get('max_execution_time'); 
    ?>
    Also you can try to use the following function to have script run for unknown time.

    Code:
    set_time_limit(0);
    niheel @ bytes

    Comment

    Working...