[wplug] PHP FTPES
Vance Kochenderfer
vkochend at nyx.net
Fri Mar 6 13:19:12 EST 2009
George Larson <george.g.larson at gmail.com> wrote:
> It is the ES part of the FTPES that makes it hairy.
>
> E is for explicit, opposed to (I)mplicit. I had to find a way to establish
> an FTP connection that accepts a cert. -- which is what had me tied in
> knots. Prior to USER and PASS, it would send an AUTH TLS-P and negotiate
> security. I couldn't figure out how to accept the cert and continue with
> the code. It looked like it was going to involve OpenSSL and I don't even
> know if this PHP was compiled with such.
I'm not familiar with FTP[E]S, but my first stop when looking to
script file transfer is curl <http://curl.haxx.se/>. It appears
that the "ftps://" syntax is supposed to use explicit SSL, but
don't know enough to be sure whether this does what you need.
If you can get the command-line version to transfer your file OK,
you can probably plug what you've learned into the PHP curl
library <http://www.php.net/curl> and keep everything contained
within your PHP script.
Vance Kochenderfer | "Get me out of these ropes and into a
vkochend at nyx.net | good belt of Scotch" -Nick Danger
More information about the wplug
mailing list