get path info via PHP

as test site is in a sub-dir I can't use statics
fixing paths