script execution time & file upload_max_filesize

Discussion in 'PHP' started by krishmk, Jul 14, 2009.

  1. #1
    I host my sites using hostgator's shared hosting plan.

    The script execution max time is 30 seconds and the file upload size is 64MB.

    I dont think its possible to upload 64MB in 30 seconds unless you have a very fast internet connection.

    When I am uploading a file thru my php script - the file uploading duration will be counted as script execution time as well rite? or its excluded while file uploading?
     
    krishmk, Jul 14, 2009 IP
  2. ashraful88

    ashraful88 Active Member

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #2
    That was very bad... I was just thinking to host one of my client's site in hostgator. Thanks... for that info
     
    ashraful88, Jul 14, 2009 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    you can increase this in ur cpanel. There is a feature
     
    Bohra, Jul 14, 2009 IP
  4. krishmk

    krishmk Well-Known Member

    Messages:
    1,376
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    185
    #4
    Are you talking about the php.ini QuickConfig feature or something different?

    In the QuickConfig I can change other things but not file upload size and script execution time.
     
    krishmk, Jul 14, 2009 IP
  5. krishmk

    krishmk Well-Known Member

    Messages:
    1,376
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    185
    #5
    Update: I had the opportunity to speak with hostgator support agent via the live chat.
    They said for shared hosting the max script execution time is 30 seconds and that limit cannot be changed via the QuickConfig feature available in Cpanel.
    The agent advised me to either use FTP or to buy a dedicated server to get rid of this problem.
    Posting here so that this helps someone who faces the same problem.
     
    krishmk, Jul 15, 2009 IP