my problem is very simple, i have a configuration file that is in this format
<?php
$ext = explode(".", basename($_SERVER['PHP_SELF']));
if($ext[1] === "inc"){ die("<b>Error </b>: You cannot access this file directly!"); }
/*
Kurtz Web Solutions
Copyright © 2007
RELEASED UNDER THE GNU GENERAL PUBLIC LICENSE
You can view this license agreement @: http://www.gnu.org/licenses/gpl.txt
*/
// Main Settings
$cfg['main']['root'] = "./dev/news_site"; // root directory for the site
$cfg['main']['news_dir'] = "/news/"; // directory for the news scripts
// MySQL Database Settings
$cfg['mysql']['host'] = "localhost"; // mysql db hostname
$cfg['mysql']['port'] = 3306; // mysql db port(def: 3306)
$cfg['mysql']['user'] = "news_user"; // mysql db username
$cfg['mysql']['pass'] = "xxxxxx"; // mysql db password
$cfg['mysql']['db'] = "news"; // mysql database
$cfg['mysql']['prefix'] = "news_"; // mysql table prefix(use if db isn't exclusive)
// Template Settings
$cfg['tpl']['def'] = "default"; // default template for APC
// Setup
$cfg['setup']['def_user'] = "shawnk"; // user created @ setup
$cfg['setup']['def_pass'] = "xxxxxx"; // password for user ^
?>
Well is there a way that I can call for example $cfg['setup']['def_user'] as something like this: $cfg[7][2]?