updated example style, changed realpath($dir) to dirname($dir.'/e/') … to avoid privileges issues