I'm working with an existing site, where the files are set up like this:
(index.php)
include_once("functions/Functions.php");
...
(Functions.php)
function GetAValue()
{
include_once("settings/settings.php");
}
So the index file calls functions in a function folder, and the sql variables and whatnot are stored in a settings folder like so:
(folder) functions
(folder) settings
(file) index.php
My question is this: I want to add a new working directory, mobile. If I use include_once("../functions/functions.php");
, it will error when the function tries to include the settings file, as it is looking for "mobile/settings/settings.php" which doesn't exist.
What are my options here ?