Added PHP functional for work with directory