protected static function isInsideJailDir($path)
    {
        $jailDir = __DIR__ . '/' . self::$jailDir;
        return strpos(realpath($path), realpath($jailDir)) !== false;
    }
protected static function isInsideJailDir($path)
    {
        $jailDir = __DIR__ . '/' . self::$jailDir;
        return strpos(realpath($path), realpath($jailDir)) !== false;
    }
protected static function isInsideJailDir ( $ path ) { $ jailDir = __DIR__ . '/' . self :: $ jailDir ; return strpos ( realpath ( $ path ) , realpath ( $ jailDir ) ) !== false ; }
Compare users selected path with jaildir path
@param string $path
@return bool
Compare users selected path with jaildir path