php.ini directives
New PHP 5 configuration directives for php.ini
Submitted by chris on August 15, 2006 - 21:36. php.ini directivesNew PHP 5 configuration directives:
realpath_cache_size integer
Default: "16K"
Determines the size of the realpath cache to be used by PHP. This value should
be increased on systems where PHP opens many files, to reflect the quantity of
the file operations performed.
realpath_cache_ttl integer
Default: "120"
Duration of time (in seconds) for which to cache realpath information for a
given file or directory. For systems with rarely changing files, consider
increasing the value.
Compression of PHP output & output_buffering
Submitted by chris on January 12, 2006 - 21:38. php.ini directivesTo perform compress at the server level under Apache see: How to enable Apache compression with mod_deflate
output_buffering = Offoutput_handler =
zlib.output_compression = On
XOR (try this one)
output_buffering = On
output_handler = ob_gzhandler
zlib.output_compression = Off
Php.ini common directives
Submitted by chris on January 13, 2006 - 00:31. php.ini directivesRequire setting:
include_path = "." (Example on Windows: include_path=".;c:\php\includes")
extension_dir = "E:/php5/ext"
upload_tmp_dir =E:/Tmp/Apache/Php5Upload
cgi.force_redirect = 1 (Default if undefined, the only case to set is with IIS, in this case use cgi.force_redirect = 0)
php.ini IIS6 example
Submitted by chris on January 13, 2006 - 00:56. php.ini directives[PHP]
;Detail about each directives, see the php.ini-recommended in the PHP
distribution
engine = On
zend.ze1_compatibility_mode = Off
short_open_tag = Off
asp_tags = Off
precision = 14
PHP: Persistent database connections
Submitted by chris on January 12, 2006 - 20:50. my.ini directives | php.ini directivesFor MySQL:
mysql.allow_persistent = Off or On
It is difficult to see any difference in the speed, for me. If the speed seems the same turn it off.
This settings can have a direct correlation to the MySQL connection settings.
php.ini variables of interest
Submitted by chris on January 13, 2006 - 00:57. php.ini directives--------Other interesting values------

