开发者

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

开发者 https://www.devze.com 2022-12-20 22:34 出处:网络
If you are uploading something like Zend Framework using poor internet conneciton it may be problematic.

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.c开发者_Go百科ompression.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/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号