[wp-trac] [WordPress Trac] #10348: WP_filesystem improvements

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 6 14:50:51 UTC 2009


#10348: WP_filesystem improvements
--------------------------+-------------------------------------------------
 Reporter:  blazerlocal   |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:            
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 I have two webhosts - webhost A and webhost B - and WP_filesystem has
 issues with both.

 == Webhost A ==
 I have SSH/SFTP access but the ssh2 extension is not installed. Also,
 although I don't have FTP access, the ftp extension is installed
 (presumably so that I might connect to '''other''' FTP servers). As a
 consequence, all I'm prompted for are FTP settings that don't exist. In
 this particular case, a pure-PHP implementation of SFTP would be helpful.
 In fact, after doing a Google search, I've found such an implementation:

 http://phpseclib.cvs.sourceforge.net/viewvc/%2Acheckout%2A/phpseclib/phpseclib/Net/SFTP.php

 http://phpseclib.sourceforge.net/documentation/net.html#net_sftp

 If Wordpress could include this, that would be very helpful. Wordpress
 already includes a pure-PHP implementation of FTP that doesn't require the
 ftp extension, so this is not without precedent.

 == Webhost B ==
 I do not have an SSH account but the ssh2 extension is installed. I do,
 however, have an FTP account, but because Wordpress doesn't let you pick
 and chose which method you want to use, I can't use it. Wordpress is
 '''only''' prompting me for SFTP information and I believe it should
 instead be asking you which method you want to use - not auto-detect it.

 If it were my own personal website, I'd just get a better host, but it's
 not - it's a website that I, in one case, am doing for my employer, and,
 in another case, a website I'm working on for a client. They want to
 control the servers on which their website is hosted and don't want to
 spend the time to actually customize them any more than they already have.
 It's annoying as hell, but it is what it is and there's not much I can do
 about it.

 Besides, as I've already observed, Wordpress already partially caters to
 people with less than ideal webhosts. A good webhost would have the ftp
 extension installed, for example, yet Wordpress includes a pure-PHP
 implementation of FTP to cater to those who don't have a good webhost all
 the same. Why not do the same thing for SFTP?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10348>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list