hi out there!
is there a way to get the name of the current directory and assign it to a variable?
for example the script is running in www.test.org/orange/test.php3 i want want the /orange/ in a variable...
thx for help
You can use $PHP_SELF to find out /orange/test.php3 and you can use dirname() to get the directory name from that. so, dirname($PHP_SELF); should do the trick. http://www.zend.com/manual/function.dirname.php
/Jocke