[wp-hackers] easy way to request ftp credentials and use them, when directory to write is not writable?..

Davit Barbakadze jayarjo at gmail.com
Thu Sep 15 09:01:44 UTC 2011

"$wp_filesystem supports various different file functions, but the
put_contents() function is the easiest one to understand."

I think both resources still lack a good writeup on other available
functions. Should I for example in all cases get the existing file's
contents before passing them to put_contents() function?

Davit Barbakadze

> On Wed, Sep 14, 2011 at 8:37 PM, Otto <otto at ottodestruct.com> wrote:
>> On Wed, Sep 14, 2011 at 6:04 AM, Davit Barbakadze <jayarjo at gmail.com> wrote:
>>> Plugins usually request ftp credentials when they are not able to
>>> install themselves directly. Is there an easy way to leverage the same
>>> ftp credentials dialog in plugin/theme cases, when there's a necessity
>>> for example to put a file in a directory, which is not writable? Some
>>> Codex page on this maybe?
>> I wrote a tutorial on how to do exactly this:
>> http://ottopress.com/2011/tutorial-using-the-wp_filesystem/
>> -Otto
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list