Setting a php.ini directive in .htaccess to apply only to one .php file
Yesterday I needed to increase the value of upload_max_filesize for a site's admin script/page while other pages of the size didn't require that. It is really easy to do it by using Apache's Files directive in .htaccess for a specific file with the below code.
<Files my.php>
php_value upload_max_filesize 10M
</Files>
Still need help? Ask us