tags:

views:

114

answers:

2

Hi Alsways uploading made web-sites , projects, I want to make such thing

make zip file, upload one file and then extract with default CHMOD for folders lets say 755 and for files 664

With Cpanel hostings its OK, I can do it via file manager... But for hostings without I can't. Baybe someone can give a hint how...????

A: 

The FTP protocol doesn't allow for such a thing.

James Polley
A: 

Sometimes I keep a locked down directory where I drop compressed files and I have a little PHP script that unzips them by doing glob("*.zip") to get all the files, and executing the unzip on them.

My "solution" does require the ability to execute commands, but if you're in a more restricted environment you can use PHP's zip_ functions or even a PEAR package.

Kristopher Ives