i have a directory that contains config.xml and then a "lib" directory with the file "loadsettings.php" in it. i'm trying to get patConfiguration from the loadsettings to read the config.xml in the previous directory using $config->setConfigDir("./"); but it doesn't work. the only way it'll work is if i have a "config" folder and a "lib" folder and do "./config".. any ideas? i dont want a new folder just for the config file
example: the root directory looksl ike this:
config/
lib/
index.php
inside config is:
config.xml
inside lib/ is:
loadsettings.php
index.php is:
<?
require ("lib/loadsettings.php");
?>
loadsettings.php is:
include ("includes/patConfiguration.php");
$config = new patConfiguration;
$config->setConfigDir("./config");
$config->parseConfigFile("config.xml");
print_r($config->getConfigValue());
i want it so there's no config dir, so it's just:
lib/
config.xml
index.php
but ./ isn't working. any ideas?