I know, as explained in PHP file upload error tmp_name is empty, how to increase these values in php.ini
:
upload_max_filesize = 50M
post_max_size = 50M
However, how to enable such settings only for one site / one .php
script and not globally for all the PHP sites hosted with the same Apache server?
Is there a way to put this is a local configuration, such as .htaccess
, and not globally?