From 15f090f7b6cf5dcb531d488b2d506cab8bfbd9fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 20 Apr 2002 10:23:53 +0000 Subject: [PATCH] Added a second example for the "$cfgPmaAbsoluteUri" directive --- ChangeLog | 2 ++ Documentation.html | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0abe3f54f..12ddbe4b1 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ $Source$ * lang/italian.inc.php3: updated thanks to "DPhantom" . * lang/portuguese.inc.php3: updated thanks to António Raposo. + * Documentation.html: added a second example for the + "$cfgPmaAbsoluteUri" directive. 2002-04-19 Marc Delisle * Documentation.html "how can I make a backup?", diff --git a/Documentation.html b/Documentation.html index e2b088a6c..b77eff71f 100755 --- a/Documentation.html +++ b/Documentation.html @@ -387,6 +387,12 @@ This setting can be dynamically completed. For example, you can try to use such a kind of code:
+$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);