I posted this to the phpMyAdmin support forum and emailed Tobias
Ratschiller, but have heard no response. I am posting to this forum to try
and resolve this problem.
I had phpMyAdmin running successfully on my server. I then upgraded to PHP
4.0.4, and phpMyAdmin appears to have broken. The error messages I receive
are as follows:
Warning: Variable passed to reset() is not an array or object in
/path/to/phpMyAdmin/lib.inc.php on line 102
Warning: Variable passed to each() is not an array or object in
/path/to/phpMyAdmin/lib.inc.php on line 103
The variable is $cfgServers, which is set in config.inc.php. There is
probably something that was disabled in PHP 4.0.4, or else a new syntax,
that broke this script.
The syntax in config.inc.php looks like this:
$cfgServers[1]['host'] = 'localhost; // MySQL hostname
$cfgServers[1]['port'] = ''; // MySQL port - leave blank
for default port
$cfgServers[1]['adv_auth'] = 'true'; // Use advanced
authentication?
$cfgServers[1]['stduser'] = 'root'; // MySQL standard user (only
needed with advanced auth)
$cfgServers[1]['stdpass'] = 'password'; // MySQL standard
password (only needed with advanced auth)
$cfgServers[1]['user'] = 'root'; // MySQL user (only needed
with basic auth)
$cfgServers[1]['password'] = ''; // MySQL password (only
needed with basic auth)
$cfgServers[1]['only_db'] = ''; // If set to a db-name, only
this db is accessible
$cfgServers[1]['verbose'] = '';
Any help would be greatly appreciated.
Erica Douglass
Server Appliance Business Unit
Sun Microsystems (Cobalt Networks)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]