[wp-hackers] wp-filesystem

Anirudh Sanjeev anirudh at anirudhsanjeev.org
Mon Mar 3 15:04:40 GMT 2008


 > 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?

On Mon, Mar 3, 2008 at 7:44 PM, Jacob Santos <wordpress at santosj.name> wrote:

> spencerp wrote:
> > Jacob Santos wrote:
> >> I'll say, that since I haven't been able to get it to work and don't
> >> have enough time to pinpoint where the problem is that you should
> >> probably try it and give feedback on what is occurring. It is
> >> fascinating, but I feel that others won't be able to get it to work
> >> either.
> >
> > Ah, well...currently all my plugins are up-to-date AFAIK. I've been
> > checking the Plugin page lately, and nothing is letting me know of
> > out-dated plugins and such. I could try some things out soon though,
> > most likely one of these upcoming evenings after work.
> >
> >
> >> As to answer your question for configuration, you don't do it after,
> >> you enter the information and it takes it and tries to download and
> >> copy the files. It doesn't save the information because of security
> >> (might be wrong). It only supports FTP technology, which shouldn't
> >> pose any problem to those who use Subversion (my problem is most
> >> likely permissions and/or extension, etc).
> >
> > Ahh, okay. I'm following you now. Thanks Jacob. =)
> >
> >> As for configuring before an installation, that doesn't sound like
> >> something that makes sense when upgrading plugins, you should have
> >> plugins already at the latest when you have a new installation.
> >
> > That's true.
> >
> >
> >
> >> 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.
> >
> > Thanks for the short and sweet description of how it works. =) So
> > basically, instead of having that older method (where that yellow-ish
> > banner like thing is showing under a specific out-dated plugin) of
> > letting you know if a plugin is out-dated, it will give a link for you
> > to click and enter FTP informations and then technically auto-update
> > itself using FTP or whatever right?
>
> Yeah. You're right. I like that there are other methods, so if your host
> is using suPHP, that you might not even need to use FTP. So, the system
> is pretty sweet.
>
> >
> > Also, are specific folders going to need a specific CHMOD setting
> > prior to doing this FTP-ing? Like, ROOT/ 777 or 755, wp-content/ 777
> > or 755 or whatever? I don't mind doing the chmod thing, if it's only a
> > temporary thing. Just wondering if this is going to need chmod similar
> > to when ya upload images via the Write Post page... I had to chmod the
> > wp-content/uploads/ folder(s) 777 I think it was, in order for it to
> > work. But to me, leaving 777 chmod on folders is a baaaad thing to
> > do... So I basically stopped uploading images via the Write Post
> > section and rechmod the folders 755/ text files 644.
>
> I think DD32 can probably answer your question better. If you are having
> to change to 777, then your host probably isn't using suPHP. FTP should
> be signed in as the user that made the files, so 755 should work. Other
> than that, it appears you know what you are doing.
>
> >
> >> In theory, it should work. I'm a little biased because I can't get it
> >> to work.
> >
> > I'll have to try and test this out sometime this week. Probably the
> > beginning of the week, after work some time. End of the week is going
> > to be really really busy for me...
>
> The more people that test it out and provide feedback to DD32 and the
> core team, the better the feature will be regardless of the method used.
> I really, really like the feature and I suspect many others will also.
>
> --
>
> Jacob Santos
>
> http://www.santosj.name - blog
> http://funcdoc.wordpress.com - WordPress Documentation Blog/Guide Licensed
> under GPLv2
>
> Also known as darkdragon and santosj on WP trac.
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Anirudh Sanjeev
Third Year Undergraduate Student, Indian Institute of Technology, Kharagpur
http://anirudhsanjeev.org
Mail: anirudh at anirudhsanjeev.org
Phone: +91-97335-04828
jabber/googletalk: anirudh at anirudhsanjeev.org
If this message is signed with PGP, you can verify with my public key at
http://anirudhsanjeev.org/pubkey.txt


More information about the wp-hackers mailing list