[code lang=”php”]$myPath = realpath(dirname(__FILE__));[/code]

or

[code lang=”php”]$myPath = getcwd();[/code]