Get current script directory name

To get full path to the script currently being read:

[php]
dirname(__FILE__)
[/php]

To get just the current directory name:

[php]
basename(dirname(__FILE__))
[/php]