Need some help with using zip
I need some help using the zip command, I've read the man page, but did not find what I needed.
I want to zip the directory '/tmp/directory/zipme' to 'zip.zip'
Zipping that is pretty easy, 'zip -r zip.zip '/tmp/directory/zipme'
the problem is that when unzipping it. Everything is in the directory structure '/tmp/directory/zipme/.....'
While I want zipme/... or even only the content of that dir.
So that when I unzip in /tmp/unzipped that the unzipped files are /tmp/unzipped/zipme/.... and not /tmp/unzipped/tmp/directory/zipme/...
I want to use this in a php script. So I can't 'cd' to that directory and use 'zip -r zip.zip zipme'