Recommended php.ini settings

Last post 07-01-2010, 1:23 PM by Eric. 3 replies.
Sort Posts: Previous Next
  •  06-30-2010, 2:03 AM 62110

    Recommended php.ini settings

    Are there any recommended settings for the phpfileuploader?
     
    I read http://phpfileuploader.com/FAQ.html#16 but it only talks about the settings, not what they should be
     
    Thanks,
     
    -- Sugendran 
  •  06-30-2010, 6:27 PM 62146 in reply to 62110

    Re: Recommended php.ini settings


     
    Parameter Name Default Value Remark
    file_uploads 1 Whether or not to allow HTTP file uploads.
    upload_max_filesize 2M The maximum size of an uploaded file.
    max_input_time 60 This sets the maximum time in seconds a script is allowed to parse input data, like POST, GET and file uploads.
    max_execution_time 30 This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser.
    post_max_size 8M Sets max size of post data allowed. This setting affects file upload. To upload large files, this value must be larger than upload_max_filesize.
    memory_limit 128M memory_limit affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.
     
    You can update these default value to match your requirements.
     
    Regards,
    Eric
  •  07-01-2010, 2:58 AM 62163 in reply to 62146

    Re: Recommended php.ini settings

    The uploader chunks files right? So if I set post_max_size to 8M and upload_max_filesize to 2M does that mean I should be able to upload a 1gb file?
  •  07-01-2010, 1:23 PM 62193 in reply to 62163

    Re: Recommended php.ini settings

    You can set to the following value:
     
  • file_uploads   on
  • upload_max_filesize  1024M
  • max_input_time  3000
  • memory_limit  1536M
  • max_execution_time 3000
  • post_max_size 1024M
  •  
    Regards,
    Eric
View as RSS news feed in XML