====== PHP Optimization ====== * [[PHP]] * [[xhprof]] * [[http://us.php.net/manual/en/configuration.changes.modes.php|Where a configuration setting may be set]] * [[http://us.php.net/manual/en/ini.list.php|List of php.ini directives]] === 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 == * [[http://us.php.net/manual/en/ini.core.php#ini.short-open-tag|description]] Allow the tags are recognized. * Default: Off * Recommended: Off * Changeable: PHP_INI_ALL == zlib.output_compression == * [[http://us.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression|description]] Transparent output compression using the zlib library * Default: Off * Recommended: On * Changeable: PHP_INI_ALL == register_long_arrays == * [[http://us.php.net/manual/en/ini.core.php#ini.register-long-arrays|description]] 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 == * [[http://us.php.net/manual/en/ini.core.php#ini.register-argc-argv|description]] 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 == * [[http://us.php.net/manual/en/mysql.configuration.php#ini.mysql.allow-persistent|description]] Allow or prevent persistent links. * Default: On * Recommended: Off * Changeable: PHP_INI_SYSTEM == session.cache_limiter == * [[http://us.php.net/manual/en/session.configuration.php#ini.session.cache-limiter|description]] 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