Hi,
I am using exec() in PHP to run the terminal program "zip". Is there a way to zip up a folder, and just that folder? FOr example, if I zip it normally, all the super-set folders show up in the zip. So like if my dir I want to zip is in /Site/zip_files/zipfolder/ and I zip it and expand it, there is a folder called Site, inside that, a folder called zip_files, and then finally my dir that I wanted to zip. I don't want the Site or zip_file part. I can't use the ignore dir option, because there are dir within the dir I want to zip.
With tar, I can do it using -directory first to navigate to the folder, then tar it.
Anyway to do this in PHP with exec? Maybe if not a zip option, then maybe I can change directories first, and have PHP remember that I changed dir before running zip.
Please help!
Thanks!