PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This code works in an Included file from the PHP_SELF. So when PHP_self goes i dont know if it sees any addy in the bar yet, EITHER that, or my class is having trouble with the inheritance of $files and does not like that.
So maybe i could get some example that either tests each one by OR's without a variable, OR uses another method on finding the $_SERVER address?
The 2 options are:
If the page is being loaded from root/admin/ then it loads /admin/_config.php, which requires root/Setup/Setup.php (where the logic should go)
If the page is bering loaded from just root/, then it loads root/_config.php, which requires root/Setup/Setup.php
In this setup.php we need this logic where tlaking about to figure out which _config.php the application came from. if you catch me
if($configer == "admin"){
var $template_dir = '../templates'; // name of directory for templates
var $compile_dir = '../templates_c'; // name of directory for compiled templates
var $config_dir = '../configs'; // directory where config files are located
}else($configer == "main"){
var $template_dir = 'templates'; // name of directory for templates
var $compile_dir = 'templates_c'; // name of directory for compiled templates
var $config_dir = 'configs'; // directory where config files are located
}
what will changing this do and affect my application? It points to directorys that arn't even there.. someone wanna give me a tutorial on include_path? LOL
from what I remember, those paths are the defaults that are stored in php.ini in the respective distros. I think they intended for you to change them to your own locations