I'm beginner php and mysql.
I quite not understand this below statement:
Step 3: Update conf.ini file
Please update the [_database] section of the conf.ini file so that it reflects the connection information to the database that you just created for LibrarianDB.
i using localhost from Xampp.
In index.php:
- Code: Select all
<?php
$install = false;
if ( !file_exists('conf.ini') ){
$install = true;
} else {
$conf = parse_ini_file('conf.ini', true);
if ( $conf['_database']['user'] == 'root' ){ // Should only change in the username, as root?
//if ( $conf['_database']['user'] == 'Your Username Here' ){
$install = true;
}
}
if ( $install ){
header("Location: install.php");
exit;
}
require_once 'config.inc.php';
require_once CONF_DATAFACE_PATH.'/dataface-public-api.php';
df_init(__FILE__,CONF_DATAFACE_URL);
$app =& Dataface_Application::getInstance();
$app->display();
?>
Thanks You for your helps and guiding.
Steven.