简体   繁体   中英

What's the best compression to use with uploading big catalog by FTP?

If you are uploading something like Zend Framework using poor internet conneciton it may be problematic.

I think the compression of the catalog is the best solution. But what compression system is the best for this task ? We are using PHP, of course.

I have some ideas like PHP + exec + unrar and http://www.php.net/manual/en/refs.compression.php but they are all not flexible enough and are not accessible in many hostings.

I assume you mean uploading the Zend Framework itself (or other programming components) and extracting it on the server side in a shared hosting environment.

This is not easy, as in a shared environment, you can't rely on unzip tar etc. being available. Any exec based idea is therefore not feasible IMO.

Probaby the only reliable possibility is a PHP Unzip class like dUnzip . With that, you would upload the zip file onto the server, and send the script along to unpack it. It requires the gzip extension activated in PHP, but that is the case with most providers.

Iirc, the Zend Framework can be installed via PEAR. You could ask your provider (if you are using shared using which i assume) to install that PEAR package for you and then you should be able to just include it via the php default include-path.

http://code.google.com/p/zend/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM