diff --git a/ChangeLog b/ChangeLog index 5e4d3d513..699c3d5fd 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ $Source$ images/vertical_line.gif: - Made it possible to specify a background image for the right frame. - Renamed 'images/bkg.gif' to 'images/vertical_line.gif'. + * Documentation.html: The external global variables don't exist anymore + since PHP 4.2.0! 2002-05-26 Loïc Chapeaux * scripts/create-release.sh, line 60: added the "-P" option (prune empty @@ -18,7 +20,7 @@ $Source$ - fixed a warning thanks to Svetlio Kovachev ; - coding standards. - * libraries/auth/cookies.auth.php3: improved a bit the detection mechanism. + * libraries/auth/cookies.auth.php3: improved a bit the detection mechanism. 2002-05-25 Loïc Chapeaux * libraries/common.lib.php3: diff --git a/Documentation.html b/Documentation.html index cc5744b0b..9a039b64b 100755 --- a/Documentation.html +++ b/Documentation.html @@ -392,16 +392,21 @@ This setting can be dynamically completed. For example, you can try to use such a kind of code:
-$cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
-                       . $HTTP_HOST . (!empty($SERVER_PORT) ? ':' . $SERVER_PORT : '')
-                       . substr($PHP_SELF, 0, strrpos($PHP_SELF, '/')+1);
+$cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
+                       . $_SERVER['HTTP_HOST']
+                       . (!empty($_SERVER['SERVER_PORT']) ? ':' . $_SERVER['SERVER_PORT'] : '')
+                       . substr($_SERVER['PHP_SELF'], 0, strrpos($['PHP_SELF'], '/')+1);
 
     or
 
-$cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
-                       . $SERVER_NAME . (!empty($SERVER_PORT) ? ':' . $SERVER_PORT : '')
-                       . substr($SCRIPT_NAME, 0, strrpos($SCRIPT_NAME, '/')+1);
+$cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
+                       . $_SERVER['SERVER_NAME']
+                       . (!empty($_SERVER['SERVER_PORT']) ? ':' . $_SERVER['SERVER_PORT'] : '')
+                       . substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')+1);
         
+ Please note that the $_SERVER array doesn't exist in + PHP < 4.1.0. Try to replace $_SERVER by + $HTTP_SERVER_VARS or $GLOBALS in this case.
$cfg['Servers'] array