Quick question. I want to be able to basically get the current directory without the actual file.
For instance if I have this code in a file in the level3 folder:
echo $_SERVER['DOCUMENT_ROOT'].$_SERVER['PHP_SELF'];
I get something to this effect
/srv/
What I want is the above path minus the index.php
Any ideas?
Thanks
For instance if I have this code in a file in the level3 folder:
echo $_SERVER['DOCUMENT_ROOT'].$_SERVER['PHP_SELF'];
I get something to this effect
/srv/
What I want is the above path minus the index.php
Any ideas?
Thanks