![]() 14 NYLON TEETH ZIPS OPEN ENDED ROYAL BLUE JOB LOT X 10 ZIPS US $6.31
|
![]() BRAND NEW YKK METAL OPEN ENDED ZIP PALE BLUE 10 25cm YKK ZIPPER US $4.73
|
![]() 60 5 Vislon Open Ended Separable Zip MINT C533 US $14.14
|
![]() 99 5 Spiral Open Ended Separable Zip WHITE C501 US $15.79
|
![]() No 5 NYLON OPEN ENDED ZIP CHOOSE YOUR SIZE COLOUR 14 34 13 COLOURS US $1.56
|
php and zip question?
Hi,
I use php to zip up the content of a folder. That works fine. But because of where the script and the subfolder are located in relation to each other I end up with loads of folders in the zip but I only want the files in there. Any help would be great.
The structure is like this.
script.php
folder
- subfolder
-- subfolder
--- subfolder
---- file1.jpg
---- file2.jpg
---- file3.jpg
when I open the zip all of the folder and subfolders are in the zip file as well but I only want to have the files in the zip folder.
Any help?
If you want to add all file files to one folder, removing their folder relationship, you would just keep adding the files to the zip archive and make sure there are no addEmptyDir functions called.
What"s Popular In Sewing:





