Email address : [EMAIL PROTECTED]

I was wondering if anyone could shed some light on this problem I am
having. I have installed a new version of MySQL and PHP on a Windows
2000 Professional box running IIS 5. I have downloaded PHPMyAdmin to a
directory under wwwroot called PHPMyAdmin. When I access it by calling
:

http://<computername>/PHPMyAdmin

It resolves it to printing out the PHP code in straight text with
error messages at the bottom like :

Warning: Variable passed to reset() is not an array or object in
C:\Inetpub\wwwroot\PhpMyAdmin\libraries\common.lib.php on line 296

Warning: Variable passed to each() is not an array or object in
C:\Inetpub\wwwroot\PhpMyAdmin\libraries\common.lib.php on line 297

Here is the meat of the config.inc.php file :

// The $cfgServers array starts with $cfgServers[1].  Do not use
$cfgServers[0].
// You can disable a server config entry by setting host to ''.
$cfgServers[1]['host']          = 'localhost'; // MySQL hostname
$cfgServers[1]['port']          = '';          // MySQL port - leave
blank for default port
$cfgServers[1]['socket']        = '';          // Path to the socket -
leave blank for default socket
$cfgServers[1]['connect_type']  = 'tcp';       // How to connect to
MySQL server ('tcp' or 'socket')
$cfgServers[1]['stduser']       = '';          // MySQL standard user
settings (this user must have read-only
$cfgServers[1]['stdpass']       = '';          //   access to the
&quot;mysql/user&quot; and &quot;mysql/db&quot; tables)
$cfgServers[1]['adv_auth']      = FALSE;       // Use advanced
authentication?
$cfgServers[1]['user']          = 'root';      // MySQL user
$cfgServers[1]['password']      = '';          // MySQL password (only
needed with basic auth)
$cfgServers[1]['only_db']       = '';          // If set to a db-name,
only this db is displayed at left frame
                                               // It may also be an
array of db-names
$cfgServers[1]['verbose']       = '';          // Verbose name for
this host - leave blank to show the hostname
$cfgServers[1]['bookmarkdb']    = '';          // Bookmark db - leave
blank for no bookmark support
$cfgServers[1]['bookmarktable'] = '';          // Bookmark table -
leave blank for no bookmark support</PRE>

When I type in phpinfo(); in a file called test in the root it works
fine. When that same file is copied underneath the PHPMyAdmin
directory, it too errors out :

CGI Error
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are:

If anyone could help me understand why this isn't working and what the
error messages mean I would be greatly appreciative. Thanks for all
your help.

JGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

Reply via email to