You can enable this feature either by
assigning the PHP script the extension .phps (this is the default extension and, as
38 CHAPTER 2 ?– CONFIGURING YOUR ENV IRONMENT
you??™ll soon learn, can be modified) or via the show_source() or highlight_file()
function. To use the .phps extension, you need to add the following line to httpd.conf:
AddType application/x-httpd-php-source .phps
You can control the color of strings, comments, keywords, the background, default
text, and HTML components of the highlighted source through the following six directives.
Each can be assigned an RGB, hexadecimal, or keyword representation of each
color. For example, the color we commonly refer to as black can be represented as
rgb(0,0,0), #000000, or black, respectively.
highlight.string = string
Scope: PHP_INI_ALL; Default value: #DD0000
highlight.comment = string
Scope: PHP_INI_ALL; Default value: #FF9900
highlight.keyword = string
Scope: PHP_INI_ALL; Default value: #007700
highlight.bg = string
Scope: PHP_INI_ALL; Default value: #FFFFFF
highlight.default = string
Scope: PHP_INI_ALL; Default value: #0000BB
highlight.html = string
Scope: PHP_INI_ALL; Default value: #000000
Miscellaneous
The Miscellaneous category consists of a single directive, expose_php.
expose_php = On | Off
Scope: PHP_INI_SYSTEM; Default value: On
Each scrap of information that a potential attacker can gather about a Web server
increases the chances that he will successfully compromise it.
Pages:
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120