|
version 1.1.1.1, 2012/02/21 23:48:06
|
version 1.1.1.2, 2012/05/29 12:34:34
|
|
Line 947 CGI environment and recommended modifications in php.i
|
Line 947 CGI environment and recommended modifications in php.i
|
| the web server not from the administration server. Use the command |
the web server not from the administration server. Use the command |
| line as root user and start it manually - you will see there are no |
line as root user and start it manually - you will see there are no |
| CGI-like environment variables. |
CGI-like environment variables. |
| |
|
| Simply change your scripts to get CGI variables in the correct way for |
|
| PHP 5.x by using the superglobal $_SERVER. If you have older scripts |
|
| which use $HTTP_HOST, etc., you should turn on register_globals in |
|
| php.ini and change the variable order too (important: remove "E" from |
|
| it, because you do not need the environment here): |
|
| variables_order = "GPCS" |
|
| register_globals = On |
|
| __________________________________________________________________ |
__________________________________________________________________ |
| |
|
| Special use for error pages or self-made directory listings (PHP >= 4.3.3) |
Special use for error pages or self-made directory listings (PHP >= 4.3.3) |
|
Line 1436 The configuration file
|
Line 1428 The configuration file
|
| ; Boolean values can be set to either: |
; Boolean values can be set to either: |
| ; true, on, yes |
; true, on, yes |
| ; or false, off, no, none |
; or false, off, no, none |
| register_globals = off | html_errors = off |
| track_errors = yes |
track_errors = yes |
| |
|
| ; you can enclose strings in double-quotes |
; you can enclose strings in double-quotes |
|
Line 1496 Running PHP as an Apache module
|
Line 1488 Running PHP as an Apache module
|
| Example 5-2. Apache configuration example |
Example 5-2. Apache configuration example |
| <IfModule mod_php5.c> |
<IfModule mod_php5.c> |
| php_value include_path ".:/usr/local/lib/php" |
php_value include_path ".:/usr/local/lib/php" |
| php_admin_flag safe_mode on | php_admin_flag engine on |
| </IfModule> |
</IfModule> |
| |
|
| Caution |
Caution |