2009-11-17, 11:18:54
I did try that originally but i had problems with absolute/relative paths.
I need to find out how to use DEFINE() to set a global variable that always gives me the same (and correct path). If you look thru a lot of the code, I am constantly doing things like '../../data' -- always trying to keep things with a relative path. This works if you always use the file the same way, but as soon as you try to include one script into another script in a different folder, the '../../' (relative paths) no longer point to the correct place. uugghh
I have no idea if that makes sense to anyone... hopefully it does and then someone can point me to the right direction I need to go...
I need to find out how to use DEFINE() to set a global variable that always gives me the same (and correct path). If you look thru a lot of the code, I am constantly doing things like '../../data' -- always trying to keep things with a relative path. This works if you always use the file the same way, but as soon as you try to include one script into another script in a different folder, the '../../' (relative paths) no longer point to the correct place. uugghh
I have no idea if that makes sense to anyone... hopefully it does and then someone can point me to the right direction I need to go...