PHP Optimization

PHP Configuration Overrides

Mode Meaning
PHP_INI_USER Entry can be set in user scripts (like with ini_set())
PHP_INI_PERDIR Entry can be set in php.ini, .htaccess or httpd.conf
PHP_INI_SYSTEM Entry can be set in php.ini or httpd.conf
PHP_INI_ALL Entry can be set anywhere

Configuration Settings

short_open_tag

Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.

  • Default: Off
  • Recommended: Off
  • Changeable: PHP_INI_ALL
zlib.output_compression

Transparent output compression using the zlib library

  • Default: Off
  • Recommended: On
  • Changeable: PHP_INI_ALL
register_long_arrays

Whether or not to register the old-style input arrays, HTTP_GET_VARS and friends.

  • Default: On
  • Recommended: Off
  • Changeable: PHP_INI_PERDIR
register_argc_argv

This directive tells PHP whether to declare the argv&argc variables (that would contain the GET information).

  • Default: On
  • Recommended: Off
  • Changeable: PHP_INI_PERDIR
mysql.allow_persistent

Allow or prevent persistent links.

  • Default: On
  • Recommended: Off
  • Changeable: PHP_INI_SYSTEM
session.cache_limiter

Set to {nocache,private,public,} to determine HTTP caching aspects or leave this empty to avoid sending anti-caching headers.

  • Default: nocache
  • Recommended: public, let the browser cache data
  • PHP_INI_ALL