After you have compiled or installed PHP, you can still change its behavior
with the php.ini file. On Linux/UNIX systems, the default location for this file is
/usr/local/php/lib or the lib subdirectory of the PHP installation location you
used at configuration time. On a Windows system, this file should be in the PHP
directory or another directory as specified by the value of PHPIniDir in the Apache
httpd.conf file.
Directives in the php.ini file come in two forms: values and flags. Value directives
take the form of a directive name and a value separated by an equal sign. Possible
values vary from directive to directive. Flag directives take the form of a directive
name and a positive or negative term separated by an equal sign. Positive terms
include 1, On, Yes, and True. Negative terms include 0, Off, No, and False.
Whitespace is ignored.
Testing Your Installation
<?php phpinfo(); ?>
Save this file as phpinfo.php and place it in the document root of your web server—
the htdocs subdirectory of your Apache installation or the /Library/WebServer/
Documents directory on Mac OS X.
with the php.ini file. On Linux/UNIX systems, the default location for this file is
/usr/local/php/lib or the lib subdirectory of the PHP installation location you
used at configuration time. On a Windows system, this file should be in the PHP
directory or another directory as specified by the value of PHPIniDir in the Apache
httpd.conf file.
Directives in the php.ini file come in two forms: values and flags. Value directives
take the form of a directive name and a value separated by an equal sign. Possible
values vary from directive to directive. Flag directives take the form of a directive
name and a positive or negative term separated by an equal sign. Positive terms
include 1, On, Yes, and True. Negative terms include 0, Off, No, and False.
Whitespace is ignored.
Testing Your Installation
<?php phpinfo(); ?>
Save this file as phpinfo.php and place it in the document root of your web server—
the htdocs subdirectory of your Apache installation or the /Library/WebServer/
Documents directory on Mac OS X.