how to increase the file uploading size in php.ini file

Discussion in 'PHP' started by bhuppi890109, May 7, 2011.

  1. #1
    how can i increase my uploading limit from 2M to 100M.
    2M is the default uploading limit in php.ini file.

    Thanks in advance
     
    bhuppi890109, May 7, 2011 IP
  2. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Keep in mind that while you may be able to adjust the maximum file size limit, on many shared hosts there is a maximum script execution time that you cannot override which will often prevent users from uploading large files.
     
    rainborick, May 7, 2011 IP
  3. TYPELiFE

    TYPELiFE Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    In php.ini, the directives look like:
    upload_max_filesize = 2M
    post_max_size = 2M
    Code (markup):
    You can override by placing the following in your .htaccess:
    php_value upload_max_filesize 20M
    php_value post_max_size 20M
    Code (markup):
     
    TYPELiFE, May 7, 2011 IP