The external global variables don't exist anymore since PHP 4.2.0!
This commit is contained in:
@@ -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<4C>c Chapeaux <lolo@phpheaven.net>
|
||||
* scripts/create-release.sh, line 60: added the "-P" option (prune empty
|
||||
@@ -18,7 +20,7 @@ $Source$
|
||||
- fixed a warning thanks to
|
||||
Svetlio Kovachev <svetlio at users.sourceforge.net>;
|
||||
- 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<4C>c Chapeaux <lolo@phpheaven.net>
|
||||
* libraries/common.lib.php3:
|
||||
|
@@ -392,16 +392,21 @@
|
||||
This setting can be dynamically completed. For example, you can try to
|
||||
use such a kind of code:
|
||||
<pre>
|
||||
$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);
|
||||
</pre>
|
||||
Please note that the <tt>$_SERVER</tt> array doesn't exist in
|
||||
PHP < 4.1.0. Try to replace <tt>$_SERVER</tt> by
|
||||
<tt>$HTTP_SERVER_VARS</tt> or <tt>$GLOBALS</tt> in this case.
|
||||
</dd>
|
||||
|
||||
<dt><b>$cfg['Servers']</b> array</dt>
|
||||
|
Reference in New Issue
Block a user