detecting directory
Posted: Mon Dec 29, 2008 4:00 am
Hi
I need a command that returns the directory name that my file is in
for example if my file is www/javad/codes/getdir.php , then I want to place a code in getdir.php that returns "codes" (and if possible "javad")
Thanks for your help
I need a command that returns the directory name that my file is in
for example if my file is www/javad/codes/getdir.php , then I want to place a code in getdir.php that returns "codes" (and if possible "javad")
Thanks for your help