Welcome Guest, Not a member yet? Register   Sign In
Error: Cannot redeclare… using Unzip-library
#1

[eluser]Ornis[/eluser]
The following implemention of Unzip-library:

<?php
Class Unzip extends Controller {

function unzip() {
parent::controller() ;
}


function index() {
$this->load->library('Unzip');

// Give it one parameter and it will extract to the same folder
$this->unzip->extract('./img_maptiles/17.zip');

// or specify a destination directory
$this->unzip->extract('./img_maptiles/mydest/');

}
}

produces an error that I can't understand:

Fatal error: Cannot redeclare class Unzip in /home/httpd/vhosts/avimonitoring.ch/httpdocs/ci/system/application/libraries/Unzip.php on line 22

What do I miss here? Thanks for your help.

Martin


Messages In This Thread
Error: Cannot redeclare… using Unzip-library - by El Forum - 12-27-2010, 08:24 AM
Error: Cannot redeclare… using Unzip-library - by El Forum - 12-27-2010, 08:51 AM
Error: Cannot redeclare… using Unzip-library - by El Forum - 12-27-2010, 09:05 AM
Error: Cannot redeclare… using Unzip-library - by El Forum - 01-03-2011, 10:21 PM
Error: Cannot redeclare… using Unzip-library - by El Forum - 01-08-2011, 01:10 AM
Error: Cannot redeclare… using Unzip-library - by El Forum - 01-08-2011, 05:30 AM
Error: Cannot redeclare… using Unzip-library - by El Forum - 01-09-2011, 09:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB