Ok, no replies yet. I know no one is going to think to hard about this because you don't have to do it but... My thought is comparing the $SERVER['SCRIPT_NAME'] and $SERVER['SCRIPT_FILENAME'] somehow to detect when the next parent folder goes back to the directory root somewhere. Anyone think this is possible? At this point I'm thinking it's almost imposible. lol