DB location
Posted: Wed Mar 11, 2009 11:42 pm
Hello!
I'm doing a CMS following an on-line tutorial, I'm running a server on my Mac with MAMP.
But I can't understand the Location of the DB, here's the code for that part
class SystemComponent
{
var $settings;
function getSettings()
{
//System Variables
$settings['siteDir'] = 'path/to/intranet/';
//Database Variables
$settings['dbhost'] = 'hostname';
$settings['dbusername'] = 'dbuser';
$settings['dbpassword'] = 'dbpass';
$settings['dbname'] = 'mydb';
return $settings;
}
}
I can run php code just fine, I have the files on a folder, I can create DBs using MySQL and with the MAMP home page, but whats the 'siteDir' and 'path/to/intranet'?
Thanks for the help!
I'm doing a CMS following an on-line tutorial, I'm running a server on my Mac with MAMP.
But I can't understand the Location of the DB, here's the code for that part
class SystemComponent
{
var $settings;
function getSettings()
{
//System Variables
$settings['siteDir'] = 'path/to/intranet/';
//Database Variables
$settings['dbhost'] = 'hostname';
$settings['dbusername'] = 'dbuser';
$settings['dbpassword'] = 'dbpass';
$settings['dbname'] = 'mydb';
return $settings;
}
}
I can run php code just fine, I have the files on a folder, I can create DBs using MySQL and with the MAMP home page, but whats the 'siteDir' and 'path/to/intranet'?
Thanks for the help!