public function open($filename)
    {

        if (!is_file($filename)) return false;

        $this->file       = @(string)$filename;
        $this->group      = @(int)filegroup($filename);
        $this->owner      = @(int)fileowner($filename);
        $this->size       = @(int)filesize($filename);
        $this->type       = @(string)filetype($filename);
        $this->accessed   = @(int)fileatime($filename);
        $this->changed    = @(int)filectime($filename);
        $this->modified   = @(int)filemtime($filename);
        $this->permission = @(int)fileperms($filename);
        $this->f_inode    = @ fileinode($filename);
        $this->writeable  = @(bool)is_writable($filename);
        $this->readable   = @(bool)is_readable($filename);
        $this->mime_type  = @(string)mime_content_type($filename);
        $this->_get_path();
        $this->_extract_filename();
        $this->_extract_file_extension();

        return true;
    }
public function open($filename)
    {

        if (!is_file($filename)) return false;

        $this->file       = @(string)$filename;
        $this->group      = @(int)filegroup($filename);
        $this->owner      = @(int)fileowner($filename);
        $this->size       = @(int)filesize($filename);
        $this->type       = @(string)filetype($filename);
        $this->accessed   = @(int)fileatime($filename);
        $this->changed    = @(int)filectime($filename);
        $this->modified   = @(int)filemtime($filename);
        $this->permission = @(int)fileperms($filename);
        $this->f_inode    = @ fileinode($filename);
        $this->writeable  = @(bool)is_writable($filename);
        $this->readable   = @(bool)is_readable($filename);
        $this->mime_type  = @(string)mime_content_type($filename);
        $this->_get_path();
        $this->_extract_filename();
        $this->_extract_file_extension();

        return true;
    }
public function open ( $ filename ) { if ( ! is_file ( $ filename ) ) return false ; $ this -> file = @ ( string ) $ filename ; $ this -> group = @ ( int ) filegroup ( $ filename ) ; $ this -> owner = @ ( int ) fileowner ( $ filename ) ; $ this -> size = @ ( int ) filesize ( $ filename ) ; $ this -> type = @ ( string ) filetype ( $ filename ) ; $ this -> accessed = @ ( int ) fileatime ( $ filename ) ; $ this -> changed = @ ( int ) filectime ( $ filename ) ; $ this -> modified = @ ( int ) filemtime ( $ filename ) ; $ this -> permission = @ ( int ) fileperms ( $ filename ) ; $ this -> f_inode = @ fileinode ( $ filename ) ; $ this -> writeable = @ ( bool ) is_writable ( $ filename ) ; $ this -> readable = @ ( bool ) is_readable ( $ filename ) ; $ this -> mime_type = @ ( string ) mime_content_type ( $ filename ) ; $ this -> _get_path ( ) ; $ this -> _extract_filename ( ) ; $ this -> _extract_file_extension ( ) ; return true ; }
gets all the information about the file

@param $filename string

@return bool
gets all the information about the file