Posted by BKDotCom on 11/26/07 19:16
Thanks for your help..
I figured out how to accomplish this.. in a nutshell:
I explode('/',__FILE__);
I then loop backwards through the array prepending a "relative path"
with the current explosion value.. until
realpath($_SERVER['DOCUMENT_ROOT'].'/'.$rel_path) == __FILE__
Navigation:
[Reply to this message]
|