??? php_flag: Sets the value of the specified Boolean directive.
??? php_admin_value: Sets the value of the specified directive. This differs from
php_value in that it cannot be used within an .htaccess file and cannot be overridden
within virtual hosts or .htaccess.
??? php_admin_flag: Sets the value of the specified directive. This differs from
php_value in that it cannot be used within an .htaccess file and cannot be
overridden within virtual hosts or .htaccess.
For example, to disable the short tags directive and prevent others from overriding
it, add the following line to your httpd.conf file:
php_admin_flag short_open_tag Off
Within the Executing Script
The third, and most localized, means for manipulating PHP??™s configuration variables
is via the ini_set() function. For example, suppose you want to modify PHP??™s
maximum execution time for a given script. Just embed the following command into
the top of the script:
ini_set("max_execution_time","60");
30 CHAPTER 2 ?– CONFIGURING YOUR ENV IRONMENT
Configuration Directive Scope
Can configuration directives be modified anywhere? The answer is no, for a variety of
reasons, mostly security related. Each directive is assigned a scope, and the directive
can be modified only within that scope. In total, there are four scopes:
??? PHP_INI_PERDIR: Directive can be modified within the php.ini, httpd.conf, or
.
Pages:
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109