Welcome Guest, Not a member yet? Register   Sign In
Performance issue of Zip Class
#13

[eluser]ocergyNohtna[/eluser]
and i put
Code:
/**
     * Add a complete directory snapshot to Zip
     *
     * @access  public
     * @param   string  physical path to the root
     * @param   string  used internally
     * @return  void
     */
    function add_all_($root, $zip_prefix = '')
    {
        $CI =& get_instance();
        $CI->load->helper('directory'); // directory_map

        foreach (directory_map($root, TRUE as $item)
        {
            $filename = $root.'/'.$item;
            
            if (is_file($filename))
            {
                $this->add_data(
                    $zip_prefix.$item, file_get_contents($filename));
            }
            else
            {
                $this->add_dir($zip_prefix.$item);
                $this->add_all_(// recursively
                    $filename, $zip_prefix.$item.'/');
            }
        }
    }
in the Zip.php library...

but i get a Parse error: syntax error, unexpected T_AS in Zip.php on line 263 which is referencing the foreach loop

i don't know what i've done now...o_O


Messages In This Thread
Performance issue of Zip Class - by El Forum - 02-08-2008, 08:05 AM
Performance issue of Zip Class - by El Forum - 02-08-2008, 09:57 AM
Performance issue of Zip Class - by El Forum - 02-08-2008, 08:31 PM
Performance issue of Zip Class - by El Forum - 02-09-2008, 02:58 AM
Performance issue of Zip Class - by El Forum - 02-09-2008, 10:23 AM
Performance issue of Zip Class - by El Forum - 02-09-2008, 12:08 PM
Performance issue of Zip Class - by El Forum - 02-09-2008, 02:55 PM
Performance issue of Zip Class - by El Forum - 02-09-2008, 03:02 PM
Performance issue of Zip Class - by El Forum - 02-10-2008, 08:15 AM
Performance issue of Zip Class - by El Forum - 02-10-2008, 08:21 AM
Performance issue of Zip Class - by El Forum - 02-10-2008, 08:54 AM
Performance issue of Zip Class - by El Forum - 02-10-2008, 08:58 AM
Performance issue of Zip Class - by El Forum - 02-10-2008, 09:06 AM
Performance issue of Zip Class - by El Forum - 02-10-2008, 09:10 AM
Performance issue of Zip Class - by El Forum - 02-10-2008, 09:23 AM
Performance issue of Zip Class - by El Forum - 02-10-2008, 09:25 AM
Performance issue of Zip Class - by El Forum - 02-10-2008, 09:26 AM
Performance issue of Zip Class - by El Forum - 03-30-2008, 12:47 PM
Performance issue of Zip Class - by El Forum - 07-13-2009, 10:11 AM
Performance issue of Zip Class - by El Forum - 07-13-2009, 02:44 PM
Performance issue of Zip Class - by El Forum - 12-15-2013, 09:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB