Sup all,
This question might come off as fairly elementary, but I'm trying to work out a good naming 'standard' I can follow for pathnames.
Right now I define common pathnames in a config.inc.php file included with every page. It's a mess. I want self-descriptive names for the specific pathnames I will need, and I'm really curious what you guys use.
What are the most common pathnames you set, and by what name do you refer to them?
For example, right now I'm using an $f_url array to store URLs, and an $f_path array to store server paths. Some of my basics to see what I mean:
$f_url['scheme'] = "http";
$f_url['host'] = "www.fury-tech.com";
$f_url['absolute'] = $f_url['scheme'] . "://" . $f_url['host'];
$f_path['root'] = "/var/www/fury-tech.com/live/";
$f_path['doc_root'] = $f_path['root'] . "htdocs/";
$f_path['include'] = $f_path['root'] . "include/";
And so on...
Please let me know if I'm being too vague, I guess I'm not looking for a particular name, but rather what you would refer to the document root as, the absolute URL, relative URLs and so on...