PHP 4.0.4 / phpMyAdmin
| From: | Erica Douglass | Date: | Wed, 10 Jan 2001 22:25:23 +0000 |
| Subject: | PHP 4.0.4 / phpMyAdmin | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-33813@lists.php.net to get a copy of this message | ||
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)