Hi,
I apologize, in advance if any of this is elementary. Just need a point in the right direction.
I receive the following error when I attempt to use the automatic installer:
\\\' . $main_title . \\\' has carried out a number of checks \\\' . \\\" to see if everything\\\\\\\'s ready to start the setup. \\\"; $the_msg = \\\'
\\\' . $main_title . \\\'
\\\' . $explain_msg; ?>
TestLink Installation -
0) { ?>
Unfortunately, TestLink setup cannot continue at the moment, due to the above 1 ? $errors.\\\\\\\" \\\\\\\" : \\\\\\\"\\\\\\\" ; ?>error 1 ? \\\\\\\"s\\\\\\\" : \\\\\\\"\\\\\\\" ; ?> . Please correct the error 1 ? \\\\\\\"s\\\\\\\" : \\\\\\\"\\\\\\\" ; ?>, and try again. If you need help figuring out how to fix the problem 1 ? \\\\\\\"s\\\\\\\" : \\\\\\\"\\\\\\\" ; ?>, please read the documentation in the TestLink Wiki, or visit the TestLink Forums.
I still have the option to input my Database Configuration information. If I complete those fields I get another error page with the following information:
Creating connection to Database Server: \\\\\\\"; ------------------------------------------------------------------------------------------------ // Connect to DB Server without choosing an specific database if(!@$conn = mysql_connect($db_server, $db_admin_name, $db_admin_pass)) { echo Failed!
Please check the database login details and try again.\\\\\\\'; echo \\\\\\\'
MySQL Error Message: \\\\\\\' . mysql_error() . \\\\\\\"
\\\\\\\"; close_html_and_exit(); } else { echo \\\\\\\"OK!
\\\\\\\"; } ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------
20050824 - fm // Succesful Connection, now try to check MySQL Version $check=check_mysql_version($conn); if($check[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'errors\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'] > 0) { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' . $check[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'msg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'] .\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'; close_html_and_exit(); } else { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"OK!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", $check[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'msg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'], \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" ; } // ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------ // Succesful Connection, now try to select the database if(!@mysql_select_db($db, $conn)) { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
Database $db does not exist.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; if( $inst_type == \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"upgrade\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" ) { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Can\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'t Upgrade\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; close_html_and_exit(); $errors += 1; } else { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Will attempt to create:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; $create = true; } } else { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
Selecting database `\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\".$db.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"`: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"OK!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; } // ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------ if($create) { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
Creating database `\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\".$db.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"`: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; // 20050826 - fm // BUGID Mantis: 0000073: DB Creation fails with no message // --------------------------------------------------------------- // 20060214 - franciscom - from MySQL Manual // 9.2. Database, Table, Index, Column, and Alias Names // // Identifier : Database // Maximum Length (bytes): 64 // Allowed Characters : Any character that is allowed in a directory name, except \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', or \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' // // An identifier may be quoted or unquoted. // If an identifier is a reserved word or contains special characters, you must quote it whenever you refer to it. // For a list of reserved words, see Section 9.6, “Treatment of Reserved Words in MySQL”. // Special characters are those outside the set of alphanumeric characters from the current character set, // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'_\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', and \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'$\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'. // The identifier quote character is the backtick (\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'`\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'): // $sql_create = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"CREATE DATABASE `\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . mysql_escape_string($db) . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"` CHARACTER SET utf8 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; // ---------------------------------------------------------------- if(!@mysql_query($sql_create, $conn)) { // 20051005 MHT More comments echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Failed! - Could not create database: $db! \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . mysql_error(); $errors += 1; echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
TestLink setup could not create the database, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"and no existing database with the same name was found.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Please create a database by different way (e.g. from command line),\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" or with different DB root account. Run setup again then.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; close_html_and_exit(); } else { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"OK!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; } } // 20050806 - fm // in upgrade mode we detect the lenght of user password field // to identify a version with uncrypted passwords if ($inst_type == \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"upgrade\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" ) { $check_passwd_type = mysql_query(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"SELECT password FROM user\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"); if (!$check_passwd_type) { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'Could not run query: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' . mysql_error(); exit; } $pwd_field_len = mysql_field_len($check_passwd_type, 0); if ( $pwd_field_len == LEN_PWD_TL_1_0_4 ) { $update_pwd=1; echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
You are upgrading from a TL pre 1.5\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
user\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s password will be crypted using MD5\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; } } // ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------ // 20050908 - fm if ( $inst_type == \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"upgrade\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") { if ($update_pwd) { $sql_upd_dir = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'sql/alter_tables/1.0.4_to_1.6/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'; } else { // try to guess TL version $sql = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"SHOW TABLES FROM {$db} LIKE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'db_version\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; $res = mysql_query($sql); if (!$res) { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"MySQL ERROR:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . mysql_error(); exit(); } if( mysql_num_rows($res) == 0 ) { // We are upgrading from a pre 1.6 version $sql_upd_dir = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'sql/alter_tables/1.5_to_1.6/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'; } else { // 20050927 - fm // try to know what db version is installed $sql = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"SELECT * FROM db_version ORDER BY upgrade_date DESC LIMIT 1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; $res = mysql_query($sql); if (!$res) { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"MySQL ERROR:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . mysql_error(); exit(); } $myrow = mysql_fetch_assoc($res); if ( strcmp(trim($myrow[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'version\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\']), \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'1.6 BETA 1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\') == 0 ) { $sql_upd_dir = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'sql/alter_tables/1.6/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'; } else { // echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"I don\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'t know how upgrade from version \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . trim($myrow[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'version\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\']); echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
Upgrade not need from version \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . trim($myrow[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'version\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\']) . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Just open your Browser and login to TestLink
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
bye!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; exit(); } } } // $sql_schema = getDirFiles($sql_upd_dir,ADD_DIR); } // ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------ // Now proceed with user checks and user creation (if needed) // // 20051217 - fm // refactoring due to minor errors // // 20050910 - fm // Added support for different types of architecture/installations: // // webserver and dbserver on same machines => user will be created as user // webserver and dbserver on DIFFERENT machines => user must be created as user@webserver // // if @ in tl_db_login (username) -> get the hostname using splitting, and use it // during user creation on db. // // 20051217 - fm $user_host = explode(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'@\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\',$tl_db_login); $msg = create_user_for_db($conn, $db, $tl_db_login, $tl_db_passwd); echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
Creating Testlink DB user `\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . $user_host[0] . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"`: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; if ( strpos($msg,\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ok -\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\') === FALSE ) { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Failed! - Could not create user: $tl_db_login!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; $errors += 1; } else { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"OK! ($msg) \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; } // ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------ include \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"sqlParser.class.php\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; // 20050804 - fm // Schema Operations (CREATE, ALTER, ecc). $sqlParser = new SqlParser($db_server, $db_admin_name, $db_admin_pass, $db, $table_prefix, $adminname, $adminpass); $sqlParser->connect(); foreach ($sql_schema as $sql_file) { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
Processing:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . $sql_file; $sqlParser->process($sql_file); } echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; $sqlParser->close(); /* echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\";
foreach ($sqlParser->mysqlErrors as $v)
echo $v . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\";
echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; */ // 20050804 - fm // Data Operations if ( count($sql_data > 0) ) { echo $msg_process_data; $sqlParser = new SqlParser($db_server, $db_admin_name, $db_admin_pass, $db, $table_prefix, $adminname, $adminpass); $sqlParser->connect(); foreach ($sql_data as $sql_file) { $sqlParser->process($sql_file); } $sqlParser->close(); } // 20050806 - fm if ($update_pwd) { $conn = mysql_connect($db_server, $db_admin_name, $db_admin_pass); mysql_select_db($db, $conn); echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Password Conversion ...\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; // @author Francisco Mancardi - 20050918 // Found error upgrading from 1.0.4 to 1.6 on RH // due to case sensitive on table name. (USER) $user_pwd = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"UPDATE user SET password=MD5(password)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; $result = mysql_query($user_pwd); } if($sqlParser->installFailed==true) { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Failed! - Installation failed!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; $errors += 1; echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"TestLink setup couldn\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'t install the default site into the selected database. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"The last error to occur was \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . $sqlParser->mysqlErrors[count($sqlParser->mysqlErrors)-1][\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"error\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"] . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' during the execution of SQL statement \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' . strip_tags($sqlParser->mysqlErrors[count($sqlParser->mysqlErrors)-1][\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"sql\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"]). \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; close_html_and_exit(); } else { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"OK!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; } // ----------------------------------------------------------------------------- echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
Writing configuration file: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; $data[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'db_host\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\']=$db_server; // 20051217 - fm - BUGID $data[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'db_login\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'] = $user_host[0]; $data[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'db_passwd\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'] = $tl_db_passwd; $data[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'db_name\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\']=$db; $cfg_file = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"../config_db.inc.php\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; $yy = write_config_db($cfg_file,$data); // ----------------------------------------------------------------------------- if(strcasecmp(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ko\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', $yy[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'status\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\']) == 0) { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Failed!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; $errors += 1; echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"TestLink couldn\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'t write the config file. Please copy the following into the \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' . $cfg_file . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' file:
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Once that\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s been done, you can log into TestLink by pointing your browser at your TestLink site.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; close_html_and_exit(); } else { echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"OK!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; } echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" . \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'Installation was successful! You can now log into the TestLink (Please Click Me!).\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'; close_html_and_exit(); ?> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ok\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'cfg_string\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' => \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'); $db_host = $data[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'db_host\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\']; $db_login = $data[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'db_login\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\']; // 20051217 - fm - BUGID // 20050910 - fm // if @ present in db_login, explode an take user name WITHOUT HOST $user_host = explode(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'@\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\',$db_login); if (count($user_host) > 1 ) { $db_login = $user_host[0]; } $db_passwd = $data[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'db_passwd\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\']; $db_name = $data[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'db_name\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\']; // write config.inc.php $configString = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; if (@!$handle = fopen($filename, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'w\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\')) { $ret[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'status\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'] = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ko\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'; } // Write $somecontent to our opened file. if (@fwrite($handle, $configString) === FALSE) { $ret[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'status\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'] = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'ko\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'; } @fclose($handle); $ret[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'cfg_string\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'] = $configString; return($ret); } //function end // -------------------------------------------------------------------------- ?>
Any help is much appreciated!
-J
Problem with New Installation Setup
Moderators: Amaradana, TurboPT, TL Developers
-
- TestLink user
- Posts: 1
- Joined: Mon Apr 10, 2006 2:44 am