in PHP

How to set php.ini values in .htaccess

If you can’t or don’t want to edit the host’s php.ini file, you can make site-specific php.ini value changes using .htaccess. Simply insert a new line on this format:

php_value {name} {value}

Here’s how to change the memory limit:

php_value memory_limit 256M
  • Related Content by Tag