private function getDirectoryPathByHash($filename)
    {
        //get 2 number
        $val1 = ord($filename[1]);
        $val2 = ord($filename[3]);

        //normalize to 99
        $val1 %= 99;
        $val2 %= 99;
        return $val1 . '/' . $val2 . '/';
    }
private function getDirectoryPathByHash($filename)
    {
        //get 2 number
        $val1 = ord($filename[1]);
        $val2 = ord($filename[3]);

        //normalize to 99
        $val1 %= 99;
        $val2 %= 99;
        return $val1 . '/' . $val2 . '/';
    }
private function getDirectoryPathByHash ( $ filename ) { //get 2 number $ val1 = ord ( $ filename [ 1 ] ) ; $ val2 = ord ( $ filename [ 3 ] ) ; //normalize to 99 $ val1 %= 99 ; $ val2 %= 99 ; return $ val1 . '/' . $ val2 . '/' ; }
Get a path with 2 directories, based on filename hash

@param string $filename

@return string directory path
Get a path with 2 directories based on filename hash