Hello...

First thank you for taking the time to look at my post and help...

I have no experience or anything to do with all this, Im just trying to setup a page that connects to my database ( Aka Registration page )

Heres the problem I am having, When I goto Phpmyadmin from XAMPP It will let me login but It says

"phpMyAdmin was unable to read your configuration file!
This might happen if PHP finds a parse error in it or PHP cannot find the file.
Please call the configuration file directly using the link below and read the PHP error message(s) that you receive. In most cases a quote or a semicolon is missing somewhere.
If you receive a blank page, everything is fine"

So I click the link It gives and then I get

Parse error: syntax error, unexpected T_VARIABLE in C:\Users\Duane\Documents\Server\xampp\phpMyAdmin\config.inc.php on line 25

Now that line 25 points to my Localhost....

I have looked at this for nearly an hour now and I have no idea, I tried changing localhost to something else which I read and It still didn't work..

I was hoping you guys could shine some light on it.. Thanks In advance

<?php
/*
 * This is needed for cookie based authentication to encrypt password in
 * cookie
 */
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */

/*
 * Servers configuration
 */
$i = 0;

/*
 * First server
 */
$i++;

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type']            = 'config';
$cfg['Servers'][$i]['user']                 = '';
$cfg['Servers'][$i]['password']             = '';
$cfg['Servers'][$i]['AllowNoPassword']      = true;2

/* Server parameters */
$cfg['Servers'][$i]['host']             = 'localhost';
$cfg['Servers'][$i]['user']             = '';
$cfg['Servers'][$i]['password']         = '';
$cfg['Servers'][$i]['socket']           = ''; 
$cfg['Servers'][$i]['connect_type']     = 'tcp';
$cfg['Servers'][$i]['compress']         = false;

/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysqli';

/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';

/* Advanced phpMyAdmin features */
$cfg['Servers'][$i]['pmadb']            = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable']    = 'pma_bookmark';
$cfg['Servers'][$i]['relation']         = 'pma_relation';
$cfg['Servers'][$i]['table_info']       = 'pma_table_info';
$cfg['Servers'][$i]['table_coords']     = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages']        = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info']      = 'pma_column_info';
$cfg['Servers'][$i]['history']          = 'pma_history';
$cfg['Servers'][$i]['designer_coords']  = 'pma_designer_coords';

/*
 * End of servers configuration
 */

/*
 * Directories for saving/loading files from server
 */
$cfg['UploadDir']   = '';
$cfg['SaveDir']     = '';

$cfg['AllowAnywhereRecoding']       = true;
$cfg['DefaultCharset']              = 'utf-8';
$cfg['DefaultLang']                 = 'en-utf-8';
$cfg['DefaultConnectionCollation']  = 'utf8_general_ci';

$cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman/5.1/en';
$cfg['MySQLManualType'] = 'searchable';

?>

I took my password and usernames out to be safe.. No offence by It 😃

And again, Thank you in advance

    the error is actully on line 22, its the 2 at the end, it shouldn't be there

      Yes, the syntax error coming from "2" at the end of

      $cfg['Servers'][$i]['AllowNoPassword']      = true;2

      remove "2" and syntax error must disappear.

        Thanks guys, I apriciate the help.. Seems it's ok now....

        But now I am having this problem when I click admin on my XAMPP...

        Object not found!

        The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

        If you think this is a server error, please contact the webmaster.
        Error 404
        localhost
        23/06/2010 13:24:18
        Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

        But If I click localhost on the page It sends me to my reg page.. But I can't get into admin..

          Write a Reply...