Fatal error: Maximum execution time

Discussion in 'Programming' started by skywalkerph, Oct 28, 2008.

  1. #1
    I am making wallpaper website and while uploading the wallpaper files

    I got this error while working on Bulk-upload

    Fatal error: Maximum execution time of 30 seconds exceeded in /home/pinoylan/public_html/animeem.com/admin/index.php on line 491

    how to fix that??? thanks
     
    skywalkerph, Oct 28, 2008 IP
  2. diligenthost

    diligenthost Peon

    Messages:
    685
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try the following in an .htaccess file:
    Where x is the amount of seconds, I would start with 60 and see if this helps.
     
    diligenthost, Oct 28, 2008 IP
  3. skywalkerph

    skywalkerph Well-Known Member

    Messages:
    636
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #3
    i did it but it didnt work :(
     
    skywalkerph, Oct 28, 2008 IP
  4. SearchBliss

    SearchBliss Well-Known Member

    Messages:
    1,899
    Likes Received:
    70
    Best Answers:
    2
    Trophy Points:
    195
    Digital Goods:
    1
    #4
    Then try "120".
     
    SearchBliss, Oct 28, 2008 IP
  5. live-cms_com

    live-cms_com Notable Member

    Messages:
    3,128
    Likes Received:
    112
    Best Answers:
    0
    Trophy Points:
    205
    Digital Goods:
    1
    #5
    That setting is in php.ini, but if you don't have a dedicated server you probably don't have access to that. So do as I recommended in the wallpaper site creator thread, split the bulk-upload into smaller portions that can be processed in under 30 seconds.
     
    live-cms_com, Oct 28, 2008 IP
  6. happpy

    happpy Well-Known Member

    Messages:
    926
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    120
    #6
    put this in the first few lines of the script, that processes your uploads
    set_time_limit(300);
    Code (markup):
     
    happpy, Oct 28, 2008 IP
  7. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #7
    If it's shared hosting, I'd go with the smaller packages like live-cms_com suggested.
     
    joebert, Oct 28, 2008 IP