Creating a file/folder structure and zipping it up?
Posted
by makeee
on Stack Overflow
See other posts from Stack Overflow
or by makeee
Published on 2010-05-13T19:16:04Z
Indexed on
2010/05/13
20:34 UTC
Read the original article
Hit count: 149
php
I have a directory of image files and I need a php script or shell script that will rename them, create a structure of nested directories, and then insert each image into a specified place in the directory hierarchy. Ideally I would just specify a parent directory for each file and a parent directory for each directory and it would build it. And then finally, I need the script to zip up the whole thing.
There's probably not an existing php class that will do all this for me, but if anyone knows of a php class or other script available online that would handle a lot of this logic that would be great.
© Stack Overflow or respective owner