PDA

View Full Version : Need help with phpMyAdmin


kalianet
12-17-01, 10:54 AM
.....after installing phpMyAdmin, this is what shows up in my browser. I've been tickering with this stuff all day. Any advise will be much appreciated

jon@kalianet.com

/**
* Gets core libraries and defines some variables
*/ require('./libraries/grab_globals.lib.php3');
require('./libraries/common.lib.php3');

// Gets the default font sizes PMA_setFontSizes();

// Gets the host name
// loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+
if (empty($HTTP_HOST)) {
if (!empty($_ENV) && isset($_ENV['HTTP_HOST'])) {
$HTTP_HOST = $_ENV['HTTP_HOST'];
}
else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['HTTP_HOST'])) { $HTTP_HOST = $HTTP_ENV_VARS['HTTP_HOST'];
}
else if (@getenv('HTTP_HOST')) {
$HTTP_HOST = getenv('HTTP_HOST');
}
else {
$HTTP_HOST = '';
}
}


/**
* Defines the frameset
*/
$url_query = 'lang=' . $lang
. '&server=' . $server
. (empty($db) ? '' : '&db=' . urlencode($db));
?>

jon

wwuud
12-18-01, 07:13 AM
Are you saying that the raw php code appeared in a browser window? in a file with a .php extension? If so, that indicates a mis-configured server. It should process .php files automatically. You might get an error message, but *NEVER* the raw php code!

Peace,
- Earl

kalianet
12-18-01, 04:42 PM
Exactly, raw php code, no 500error.

jon