Welcome Guest, Not a member yet? Register   Sign In
Zip Encoding Class
#1

[eluser]renownedmedia[/eluser]
I'm going through the zip encoding class... And I'm wondering if there is maybe an undocumented parameter for read_dir(). The way it works now is you list a directory you'd like to add to the zip, be it absolute or relative. Then, when the zip is downloaded, the directory is added to the zip file in the same manner it's opened, e.g.:

read_dir("pictures/75/") produces x.ZIP/pictures/75/*

I'd like to know if there is an optional second parameter or one in the works where you can choose the directory in the zip where the item is placed, e.g.:

read_dir("pictures/75/", "pics") produces x.ZIP/pics/*

Otherwise, I'd have to use dir() and zip->add_data() inside of a loop, which just wouldn't be as pretty :p




Theme © iAndrew 2016 - Forum software by © MyBB