wordpress at dd32.id.au
Mon Mar 3 23:21:07 GMT 2008
On Tue, 04 Mar 2008 02:04:40 +1100, Anirudh Sanjeev <anirudh at anirudhsanjeev.org> wrote:
> > How it works:
>> It works when the plugin page finds that your plugin is out of date,
>> it will provide a link to let you download the plugin automatically.
>> Once you click this link, you provide FTP information to your server.
>> It will then retrieve the plugin download, upload it to your server
>> and replace it with the old plugin.
> I've actually implemented a similar feature except it uses direct php
> unzipping rather than FTP.
> Though it will be good to provide FTP support too. Can I have a look at your
> code please?
You can find the code in the WordPress trunk.
However, I'm interested in your Unzipping, At present, WP is using a pure-php unsipping method as you've noticed, Its got some limitations on certain setups(In the sense that it simply doesnt work -- i think it reaches the limit of an int..). What it really needs IMO is to use the PHP Zip extension if available, else use the zlib library if compiled in(90% of situations i think?) else revert to pure php.
Does anyone have any experience in unzipping files via ftp? any comments that can be thrown in?
More information about the wp-hackers