Use php function getcwd to get current dir for nanodcm