Get current working directory of php script/application January 8, 2010 • 7 words • 1 min read #PHP $myPath = realpath(dirname(__FILE__)); or $myPath = getcwd();