I'm trying to find a function or variable that will return the path (from document root would be preferred) to where the current script is, but not include the name of the script as part of it.
SCRIPT_FILENAME, SCRIPT_NAME, PHP_SELF, and REQUEST_URI all include the name of the file as part of the string (as they should). Is there a variable I'm missing?
Thanks!