Some days ago I have faced a problem of the web hosting’s POST MAX SIZE. I have to upload large file but the hosting server doesn’t allow it. So the standard process is modify your php.ini file . But most of the time in shared hosting you haven’t access in php.ini file. Then you need to write .htaccess. But I found the most promising solution is the .user.ini file creation.
In PHP 5.30 and abobe version this option is available.
So what is the process ?
Let go with a simple example …….
You need to increase the maximum post size and the upload file size. Now
upload_max_filesize = 40M
post_max_size = 40M
Save it. Then it should work. The original php.ini will be overwritten for this directory with this command.