$myPath = realpath(dirname(__FILE__)); or $myPath = getcwd();
Home » PostsGet current working directory of php script/applicationJanuary 8, 2010 · 1 min · 7 words · Andrew$myPath = realpath(dirname(__FILE__)); or$myPath = getcwd();