PHP Considerations

Customizing your php.ini

If you are going to customize your php.ini, you should get your host default. And then propagate to all subdirectories that has PHP. But this only works if your host has PHP setup to scan directories for other php.ini.

PHP Script to grab host default.
PHP Script to copy php.ini to all subdirectory.
PHP Script to recursively delete php.ini.

Here is Dreamhost's instructions for doing the above.

.htaccess

Some host will allow .htaccess to change PHP directives. This only works if PHP is run as Apache instead of CGI. The .htaccess automatically affects subdirectories.

 

Next

For more lessons, see left menu