Just like PHP errors, you can set PHP options you would normally set in php.ini using .htaccess.

You just add the option preceded by php_flag and follow by the value:

php_value upload_max_filesize 20M
php_value post_max_size 25M
php_value memory_limit 32M

You can of course also use the | ini_set function.