How do i find the location of the directory in which a script is run where the script itself is linked and several directories down ?
basename($PHP_SELF)
works when script is in the same directory, but i want to have script in the root dir.