Thank you for providing this class.
How can I manage it, that the target directory is not created twice.
If I unzip i.e. "test.zip" in root directory, than the directory "test" is created. In this directory another directory "test" is created and there all the files are created.
How can I manage just the creation of one directory "test"?
Darren Conyard - 2013-01-09 15:52:26 - In reply to message 1 from manfred
I was looking at this class too and I did not find your problem. You can use this line to create a new directory:
if you need to create a new directory within the directory your executing the PHP file in then you would need to add this to this line:
$zip=new UnZIP('example_file.zip', 'test');
if you need to create the directory elsewhere then you need to navigate through the tree for example:
$zip=new UnZIP('example_file.zip', '../test');
to create a test directory one level above the current directory. I am not sure if this necessarily solves the problem your having but with this I did not get two directories created with the unzipped files within them.