Just a simple question, I need to get the directory I'm working in, but when I use getcwd, it gives me the absolute directory. I specifically need the immediate directory the file is in, without a slash before it (example: if the URL was www.test.com/directory/file.php I would just want the word "directory").
Thanks for your help, in advance.