Darren Conyard - 2013-01-09 15:52:26 -
In reply to message 1 from manfred
Hi 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:
$zip=new UnZIP('example_file.zip');
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.
Best Regards
Darren Conyard