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:
|
images/vertical_line.gif:
|
||||||
- Made it possible to specify a background image for the right frame.
|
- Made it possible to specify a background image for the right frame.
|
||||||
- Renamed 'images/bkg.gif' to 'images/vertical_line.gif'.
|
- 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>
|
2002-05-26 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* scripts/create-release.sh, line 60: added the "-P" option (prune empty
|
* scripts/create-release.sh, line 60: added the "-P" option (prune empty
|
||||||
|
@@ -392,16 +392,21 @@
|
|||||||
This setting can be dynamically completed. For example, you can try to
|
This setting can be dynamically completed. For example, you can try to
|
||||||
use such a kind of code:
|
use such a kind of code:
|
||||||
<pre>
|
<pre>
|
||||||
$cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
$cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
||||||
. $HTTP_HOST . (!empty($SERVER_PORT) ? ':' . $SERVER_PORT : '')
|
. $_SERVER['HTTP_HOST']
|
||||||
. substr($PHP_SELF, 0, strrpos($PHP_SELF, '/')+1);
|
. (!empty($_SERVER['SERVER_PORT']) ? ':' . $_SERVER['SERVER_PORT'] : '')
|
||||||
|
. substr($_SERVER['PHP_SELF'], 0, strrpos($['PHP_SELF'], '/')+1);
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
$cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
|
$cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
|
||||||
. $SERVER_NAME . (!empty($SERVER_PORT) ? ':' . $SERVER_PORT : '')
|
. $_SERVER['SERVER_NAME']
|
||||||
. substr($SCRIPT_NAME, 0, strrpos($SCRIPT_NAME, '/')+1);
|
. (!empty($_SERVER['SERVER_PORT']) ? ':' . $_SERVER['SERVER_PORT'] : '')
|
||||||
|
. substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')+1);
|
||||||
</pre>
|
</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>
|
</dd>
|
||||||
|
|
||||||
<dt><b>$cfg['Servers']</b> array</dt>
|
<dt><b>$cfg['Servers']</b> array</dt>
|
||||||
|
Reference in New Issue
Block a user