Added a second example for the "$cfgPmaAbsoluteUri" directive

This commit is contained in:
Loïc Chapeaux
2002-04-20 10:23:53 +00:00
parent 6a6e5bfd0b
commit 15f090f7b6
2 changed files with 8 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ $Source$
* lang/italian.inc.php3: updated thanks to
"DPhantom" <dphantom at users.sourceforge.net>.
* lang/portuguese.inc.php3: updated thanks to Ant<6E>nio Raposo.
* Documentation.html: added a second example for the
"$cfgPmaAbsoluteUri" directive.
2002-04-19 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html "how can I make a backup?",

View File

@@ -387,6 +387,12 @@
This setting can be dynamically completed. For example, you can try to
use such a kind of code:
<pre>
$cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
. $HTTP_HOST . (!empty($SERVER_PORT) ? ':' . $SERVER_PORT : '')
. substr($PHP_SELF, 0, strrpos($PHP_SELF, '/')+1);
or
$cfgPmaAbsoluteUri = (!empty($HTTPS) ? 'https' : 'http') . '://'
. $SERVER_NAME . (!empty($SERVER_PORT) ? ':' . $SERVER_PORT : '')
. substr($SCRIPT_NAME, 0, strrpos($SCRIPT_NAME, '/')+1);