function file()
    {
        $data    = implode('', $this -> datasec);
        $ctrldir = implode('', $this -> ctrl_dir);

        return
            $data .
            $ctrldir .
            $this -> eof_ctrl_dir .
            pack('v', sizeof($this -> ctrl_dir)) .  // total # of entries "on this disk"
            pack('v', sizeof($this -> ctrl_dir)) .  // total # of entries overall
            pack('V', strlen($ctrldir)) .           // size of central dir
            pack('V', strlen($data)) .              // offset to start of central dir
            "\x00\x00";                             // .zip file comment length
    }
function file()
    {
        $data    = implode('', $this -> datasec);
        $ctrldir = implode('', $this -> ctrl_dir);

        return
            $data .
            $ctrldir .
            $this -> eof_ctrl_dir .
            pack('v', sizeof($this -> ctrl_dir)) .  // total # of entries "on this disk"
            pack('v', sizeof($this -> ctrl_dir)) .  // total # of entries overall
            pack('V', strlen($ctrldir)) .           // size of central dir
            pack('V', strlen($data)) .              // offset to start of central dir
            "\x00\x00";                             // .zip file comment length
    }
function file ( ) { $ data = implode ( '' , $ this -> datasec ) ; $ ctrldir = implode ( '' , $ this -> ctrl_dir ) ; return $ data . $ ctrldir . $ this -> eof_ctrl_dir . pack ( 'v' , sizeof ( $ this -> ctrl_dir ) ) . // total # of entries "on this disk" pack ( 'v' , sizeof ( $ this -> ctrl_dir ) ) . // total # of entries overall pack ( 'V' , strlen ( $ ctrldir ) ) . // size of central dir pack ( 'V' , strlen ( $ data ) ) . // offset to start of central dir "\x00\x00" ; // .zip file comment length }
Dumps out file

@return  string  the zipped file

@access public
Dumps out file