I use phpMyAdmin with Web server name
"OmniSecure" at http://www.omnicron.ca
It show this line when I click at INSERT (on TABLE
view)
"Notice: Undefined index: HTTP_HOST in
E:\phpMyAdmin\header.inc.php on line 44"
but it didn't happen with Apache. I think this
variable is only use in apache.
Logged In: YES
user_id=418833
You have to set a proper value of $cfg['pmaAbsoluteUri'] in
this case.
Logged In: YES
user_id=192186
rabus: No, that line is about SetHttpHostTitle....
Logged In: YES
user_id=1025449
I have added $cfg['pmaAbsoluteUri'] before.
Logged In: YES
user_id=210714
joyyut,
in header.inc.php, before line 44 try this:
43 echo "trace " . $HTTP_HOST;
44 if ($cfg['ShowHttpHostTitle']) {
and tell me the result.
Logged In: YES
user_id=1025449
it is show
"trace" on first line.
no any word after that.
===============================
trace
phpMyAdmin 2.6.0-rc1
===============================
when I enter to phpMyAdmin index.php
Logged In: YES
user_id=210714
Ok.
- which PHP version is this?
- could you try at line 44:
print_r($_SERVER);
and find something that contains the HTTP host name?
Logged In: YES
user_id=1025449
Version 5.0.1
- No variable name found that contains HTTP host name.
Logged In: YES
user_id=1025449
I try with PHP 5.0.1 and PHP 4.3.9(last version)
no variable that contains the HTTP host name found in
$_SERVER
Logged In: YES
user_id=210714
Well, looks like we cannot find the http host name.
Meanwhile the cvs version contains a fix for this error.
Line 44 is now:
$title .= (empty($GLOBALS['cfg']['SetHttpHostTitle'])
&& isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] :
$GLOBALS['cfg']['SetHttpHostTitle']) . ' >> ';
Please try it and confirm.
Logged In: YES
user_id=1025449
It's work. :)