cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: sftp using ssh2

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 12 Nov 2007 10:28:20 +0100 (CET)

On Mon, 12 Nov 2007, neugi wrote:

> is there a way to make an upload to an ftp with this settings: sftp using
> ssh2 with an php script?

If you use sftp, it is not ftp. Don't think they are even remotely the same.

But yes, if you build libcurl with SSH support (libssh2), you should be able
to make your PHP script do both SCP and SFTP transfers just fine. Given that
the PHP/CURL binding has the necessary options available - if it doesn't it
should be an easy fix.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-11-12