Thanks for your reply.
In this routine, many files use the same functions. I've created a custom (sub) routine that will be called by files from the 'public' directory. The problem is, files from the 'admin' directory also uses the same functions. I just want to control the execution of the custom code within that function based upon which directory is calling it BUT without duplicating code just to change the name.
So, if I had something like,
if (dir != '...'), then...
or
if (dir == '...'), then skip...or something else...
Thanks again in advance.