O.P. get URI folder for executing PHP script
basically, I am looking for a method to obtain the directory where the current script is running. I do know that $_SERVER['REQUEST_URI'] contains the full url, but it is not cross platform. (*cough* IIS *cough*)
so for any url, http://subdomain.domain.tld/folder/folder2/file.php, i need http://subdomain.domain.tld/folder/folder2/ to be returned
help please? anyone?
I cannot hear you. There is a banana in my ear.
|