Re: PHP 4.0.4 / phpMyAdmin
| From: | Erica Douglass | Date: | Wed, 10 Jan 2001 23:15:51 +0000 |
| Subject: | Re: PHP 4.0.4 / phpMyAdmin | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33830@lists.php.net to get a copy of this message | ||
Clarification: A quotation mark got left out after ['host'] = 'localhost in
my original email. It is in the config.inc.php file and makes no difference
in the error messages. The fix is below.
Erica
""Erica Douglass"" <erica@cobalt.com> wrote in message
news:93indu$enk$1@toye.p.sourceforge.net...
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>