$myPath = realpath(dirname(__FILE__));

or

$myPath = getcwd();