If you??™re using PHP in other fashions, however, such as a content generator for
WML (Wireless Markup Language) applications, you need to adjust the MIME type
accordingly. You can do so by modifying the default_mimetype directive.
default_charset = string
Scope: PHP_INI_ALL; Default value: iso-8859-1
As of version 4.0, PHP outputs a character encoding in the Content-Type header.
By default this is set to iso-8859-1, which supports languages such as English,
Spanish, German, Italian, and Portuguese, among others. If your application is geared
toward languages such as Japanese, Chinese, or Hebrew, however, the default_charset
directive allows you to update this character set setting accordingly.
CHAPTER 2 ?– CONFIGURING YOUR EN V IRONMENT 45
always_populate_raw_post_data = On | Off
Scope: PHP_INI_PERDIR; Default value: On
Enabling the always_populate_raw_post_data directive causes PHP to assign a
string consisting of POSTed name/value pairs to the variable $HTTP_RAW_POST_DATA,
even if the form variable has no corresponding value. For example, suppose this directive
is enabled and you create a form consisting of two text fields, one for the user??™s
name and another for the user??™s e-mail address. In the resulting form action, you
execute just one command:
echo $HTTP_RAW_POST_DATA;
Filling out neither field and clicking the Submit button results in the following
output:
name=&email=
Filling out both fields and clicking the Submit button produces output similar to
the following:
name=jason&email=jason%40example.
Pages:
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129