Changing upload_max_filesize on PHP

后端 未结 11 926
星月不相逢
星月不相逢 2020-11-22 16:50

I\'m using PHP 5.3.0 and have encountered something that might be a bug (in which case I\'ll report it) or might be me - so I\'m asking to make sure.

When running th

11条回答
  •  无人共我
    2020-11-22 17:13

    Since I just ran in to this problem on a shared host and was unable to add the values to my .htaccess file I thought I'd share my solution.

    I made an ini file with the values in it. Simple as that:

    Make a file called ".user.ini" and add your values

    upload_max_filesize = 150M
    post_max_size = 150M
    

    Boom, problem solved.

提交回复
热议问题