Avatar billede quite Nybegynder
10. oktober 2000 - 17:54 Der er 7 kommentarer og
1 løsning

PHPMyAdmin!??

Nu fik jeg tilføjet mysql-extensions og så virkede brugersystem-scriptet.

PhPMyAdmin virker dog stadig ikke.

her er config.inc.php3:

// 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][\'adv_auth\'] = false;            // Use advanced authentication?
$cfgServers[1][\'stduser\'] = \'root\';            // MySQL standard user (only needed with advanced auth)
$cfgServers[1][\'stdpass\'] = \'\';                // 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\'] = \'test\';                    // If set to a db-name, only this db is accessible
$cfgServers[1][\'verbose\'] = \'\';                // Verbose name for this host - leave blank to show the hostname
<?php
/* $Id: config.inc.php3,v 1.28 2000/07/13 13:52:48 tobias Exp $ */

/*
*  phpMyAdmin Configuration File
*  All directives are explained in Documentation.html
*/

// 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][\'adv_auth\'] = false;            // Use advanced authentication?
$cfgServers[1][\'stduser\'] = \'root\';            // MySQL standard user (only needed with advanced auth)
$cfgServers[1][\'stdpass\'] = \'\';                // 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\'] = \'\';                // Verbose name for this host - leave blank to show the hostname

$cfgServers[2][\'host\'] = \'\';
$cfgServers[2][\'port\'] = \'\';
$cfgServers[2][\'adv_auth\'] = false;
$cfgServers[2][\'stduser\'] = \'\';
$cfgServers[2][\'stdpass\'] = \'\';
$cfgServers[2][\'user\'] = \'\';
$cfgServers[2][\'password\'] = \'\';
$cfgServers[2][\'only_db\'] = \'\';
$cfgServers[2][\'verbose\'] = \'\';

$cfgServers[3][\'host\'] = \'\';
$cfgServers[3][\'port\'] = \'\';
$cfgServers[3][\'adv_auth\'] = false;
$cfgServers[3][\'stduser\'] = \'\';
$cfgServers[3][\'stdpass\'] = \'\';
$cfgServers[3][\'user\'] = \'root\';
$cfgServers[3][\'password\'] = \'\';
$cfgServers[3][\'only_db\'] = \'\';
$cfgServers[3][\'verbose\'] = \'\';

// If you have more than one server configured, you can set $cfgServerDefault
// to any one of them to autoconnect to that server when phpMyAdmin is started,
// or set it to 0 to be given a list of servers without logging in
// If you have only one server configured, $cfgServerDefault *MUST* be
// set to that server.
$cfgServerDefault = 1;                            // Default server  (0 = no default server)
$cfgServer = \'\';
unset($cfgServers[0]);

$cfgManualBase = \"http://www.mysql.com/documentation/mysql/bychapter/\";

$cfgConfirm = true;
$cfgPersistentConnections = false;

$cfgBorder      = \"0\";
$cfgThBgcolor  = \"#D3DCE3\";
$cfgBgcolorOne = \"#CCCCCC\";
$cfgBgcolorTwo = \"#DDDDDD\";
$cfgMaxRows = 30;
$cfgMaxInputsize = \"300px\";
$cfgOrder = \"ASC\";
$cfgShowBlob = true;
$cfgShowSQL = true;

require(\"english.inc.php3\");

$cfgColumnTypes = array(
  \"TINYINT\",
  \"SMALLINT\",
  \"MEDIUMINT\",
  \"INT\",
  \"BIGINT\",
  \"FLOAT\",
  \"DOUBLE\",
  \"DECIMAL\",
  \"DATE\",
  \"DATETIME\",
  \"TIMESTAMP\",
  \"TIME\",
  \"YEAR\",
  \"CHAR\",
  \"VARCHAR\",
  \"TINYBLOB\",
  \"TINYTEXT\",
  \"TEXT\",
  \"BLOB\",
  \"MEDIUMBLOB\",
  \"MEDIUMTEXT\",
  \"LONGBLOB\",
  \"LONGTEXT\",
  \"ENUM\",
  \"SET\");

$cfgFunctions = array(
  \"ASCII\",
  \"CHAR\",
  \"SOUNDEX\",
  \"CURDATE\",
  \"CURTIME\",
  \"FROM_DAYS\",
  \"FROM_UNIXTIME\",
  \"NOW\",
  \"PASSWORD\",
  \"PERIOD_ADD\",
  \"PERIOD_DIFF\",
  \"TO_DAYS\",
  \"USER\",
  \"WEEKDAY\",
  \"RAND\");

$cfgAttributeTypes = array(
  \"\",
  \"BINARY\",
  \"UNSIGNED\",
  \"UNSIGNED ZEROFILL\");

// Setting magic_quotes_runtime - do not change!
set_magic_quotes_runtime(0);
?>
// The $cfgServers array starts with $cfgServers[1].  Do not use $cfgServers[0].

...og den giver følgende output i browseren;

// 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][\'adv_auth\'] = false; // Use advanced authentication? $cfgServers[1][\'stduser\'] = \'root\'; // MySQL standard user (only needed with advanced auth) $cfgServers[1][\'stdpass\'] = \'\'; // 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\'] = \'test\'; // If set to a db-name, only this db is accessible $cfgServers[1][\'verbose\'] = \'\'; // Verbose name for this host - leave blank to show the hostname // The $cfgServers array starts with $cfgServers[1]. Do not use $cfgServers[0].

det ligner et simpelt problem, men ....

Ja, jeg er nok idiot?

Avatar billede jinxed Nybegynder
10. oktober 2000 - 18:02 #1
Prøv at erstatte indholdet af filen med dette:

<?php
/* $Id: config.inc.php3,v 1.28 2000/07/13 13:52:48 tobias Exp $ */

/*
*  phpMyAdmin Configuration File
*  All directives are explained in Documentation.html
*/

// 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][\'adv_auth\'] = false;            // Use advanced authentication?
$cfgServers[1][\'stduser\'] = \'root\';            // MySQL standard user (only needed with advanced auth)
$cfgServers[1][\'stdpass\'] = \'\';                // 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\'] = \'test\';                // If set to a db-name, only this db is accessible
$cfgServers[1][\'verbose\'] = \'\';                // Verbose name for this host - leave blank to show the hostname

$cfgServers[2][\'host\'] = \'\';
$cfgServers[2][\'port\'] = \'\';
$cfgServers[2][\'adv_auth\'] = false;
$cfgServers[2][\'stduser\'] = \'\';
$cfgServers[2][\'stdpass\'] = \'\';
$cfgServers[2][\'user\'] = \'\';
$cfgServers[2][\'password\'] = \'\';
$cfgServers[2][\'only_db\'] = \'\';
$cfgServers[2][\'verbose\'] = \'\';

$cfgServers[3][\'host\'] = \'\';
$cfgServers[3][\'port\'] = \'\';
$cfgServers[3][\'adv_auth\'] = false;
$cfgServers[3][\'stduser\'] = \'\';
$cfgServers[3][\'stdpass\'] = \'\';
$cfgServers[3][\'user\'] = \'root\';
$cfgServers[3][\'password\'] = \'\';
$cfgServers[3][\'only_db\'] = \'\';
$cfgServers[3][\'verbose\'] = \'\';

// If you have more than one server configured, you can set $cfgServerDefault
// to any one of them to autoconnect to that server when phpMyAdmin is started,
// or set it to 0 to be given a list of servers without logging in
// If you have only one server configured, $cfgServerDefault *MUST* be
// set to that server.
$cfgServerDefault = 1;                            // Default server  (0 = no default server)
$cfgServer = \'\';
unset($cfgServers[0]);

$cfgManualBase = \"http://www.mysql.com/documentation/mysql/bychapter/\";;

$cfgConfirm = true;
$cfgPersistentConnections = false;

$cfgBorder      = \"0\";
$cfgThBgcolor  = \"#D3DCE3\";
$cfgBgcolorOne = \"#CCCCCC\";
$cfgBgcolorTwo = \"#DDDDDD\";
$cfgMaxRows = 30;
$cfgMaxInputsize = \"300px\";
$cfgOrder = \"ASC\";
$cfgShowBlob = true;
$cfgShowSQL = true;

require(\"english.inc.php3\");

$cfgColumnTypes = array(
  \"TINYINT\",
  \"SMALLINT\",
  \"MEDIUMINT\",
  \"INT\",
  \"BIGINT\",
  \"FLOAT\",
  \"DOUBLE\",
  \"DECIMAL\",
  \"DATE\",
  \"DATETIME\",
  \"TIMESTAMP\",
  \"TIME\",
  \"YEAR\",
  \"CHAR\",
  \"VARCHAR\",
  \"TINYBLOB\",
  \"TINYTEXT\",
  \"TEXT\",
  \"BLOB\",
  \"MEDIUMBLOB\",
  \"MEDIUMTEXT\",
  \"LONGBLOB\",
  \"LONGTEXT\",
  \"ENUM\",
  \"SET\");

$cfgFunctions = array(
  \"ASCII\",
  \"CHAR\",
  \"SOUNDEX\",
  \"CURDATE\",
  \"CURTIME\",
  \"FROM_DAYS\",
  \"FROM_UNIXTIME\",
  \"NOW\",
  \"PASSWORD\",
  \"PERIOD_ADD\",
  \"PERIOD_DIFF\",
  \"TO_DAYS\",
  \"USER\",
  \"WEEKDAY\",
  \"RAND\");

$cfgAttributeTypes = array(
  \"\",
  \"BINARY\",
  \"UNSIGNED\",
  \"UNSIGNED ZEROFILL\");

// Setting magic_quotes_runtime - do not change!
set_magic_quotes_runtime(0);
?>
Avatar billede jinxed Nybegynder
10. oktober 2000 - 18:04 #2
Glemte lige en forklaring....

Du har kopieret noget fra filen så det er uden for php tags\'ne

Det er derfor at en del af koden slipper ufortolket igennem.

Jinxed ; }
Avatar billede quite Nybegynder
10. oktober 2000 - 18:05 #3
Jo, det ændrede da noget - nu er skærmen i browseren helt blank ....manner....
hehe

Avatar billede jinxed Nybegynder
10. oktober 2000 - 18:06 #4
Kalder du config.inc.php3 direkte?

Det er index.php3 du skal kalde
Avatar billede quite Nybegynder
10. oktober 2000 - 18:07 #5
Ja, det anede mig også, men kunne ikke finde ud af hvilken del jeg havde sat udenfor tags\'ne!?

Avatar billede quite Nybegynder
10. oktober 2000 - 18:09 #6
Ja, kaldte index før, men ikke efter dine korrektioner. Viste sig at virke efter rettelserve. Tusind tak, du er en knag!

Rasmus
Avatar billede jinxed Nybegynder
10. oktober 2000 - 18:09 #7
Bare husk på at alt der skal fortolkes af parseren skal være inde for tags\'ne (<? her ?> eller <?php her ?>)

Jinxed  : ]
Avatar billede jinxed Nybegynder
10. oktober 2000 - 18:11 #8
Det var så lidt ; )
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester