ini file. Later chapters will introduce module-specific
directives as appropriate.
Before you are introduced to them, however, take a moment to review the php.ini
file??™s general syntactical characteristics. The php.ini file is a simple text file, consisting
solely of comments and the directives and their corresponding values. Here??™s a sample
snippet from the file:
;
; Allow the tag
;
short_open_tag = Off
Lines beginning with a semicolon are comments; the parameter short_open_tag is
assigned the value Off.
?– Tip Once you??™re comfortable with a configuration parameter??™s purpose, consider deleting the accompanying
comments to streamline the file??™s contents, thereby decreasing later editing time.
CHAPTER 2 ?– CONFIGURING YOUR EN V IRONMENT 29
Exactly when changes take effect depends on how you install PHP. If PHP is
installed as a CGI binary, the php.ini file is reread every time PHP is invoked, thus
making changes instantaneous. If PHP is installed as an Apache module, php.ini is
only read in once, when the Apache daemon is first started. Therefore, if PHP is
installed in the latter fashion, you must restart Apache before any of the changes take
effect.
The Apache httpd.conf and .htaccess Files
When PHP is running as an Apache module, you can modify many of the directives
through either the httpd.conf file or the .htaccess file. This is accomplished by
prefixing directive/value assignment with one of the following keywords:
??? php_value: Sets the value of the specified directive.
Pages:
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108