I have a script that has to make a connection via sftp and read the contents
of a file. In the shell, I can simply type
sftp [EMAIL PROTECTED]
As I use the keys on the server so don't need a password. How can I make
this connection in php so I can get the data contents nightly? We installed
On Tue, December 11, 2007 2:01 pm, blackwater dev wrote:
I have to write a script that will connect to a remove server using
sftp and
pull in specific files for processing. Currently I can get to the
server by
just using sftp [EMAIL PROTECTED] How can I open these files via php?
Is the
I have to write a script that will connect to a remove server using sftp and
pull in specific files for processing. Currently I can get to the server by
just using sftp [EMAIL PROTECTED] How can I open these files via php? Is the
only way to use fopen with the PECL sftp, ssh2 modules?
Thanks!
[snip]
I have to write a script that will connect to a remove server using sftp
and
pull in specific files for processing. Currently I can get to the
server by
just using sftp [EMAIL PROTECTED] How can I open these files via php? Is
the
only way to use fopen with the PECL sftp, ssh2 modules?
[snip]
Yes but will these handle sftp? I have a key on the other server so don't need
a password.
[/snip]
http://us.php.net/manual/en/function.ftp-ssl-connect.php
always reply to all so the mail gets back on the list
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Sorry, thanks for the info!
On Dec 11, 2007 3:26 PM, Jay Blanchard [EMAIL PROTECTED] wrote:
[snip]
Yes but will these handle sftp? I have a key on the other server so don't
need a password.
[/snip]
http://us.php.net/manual/en/function.ftp-ssl-connect.php
always reply to all so the mail
Hi All,
Just wondering if anyone has had any success getting a connection
working with PHP via SFTP.
I am running
Win 2003 Server
PHP Version 5.1.6
Win32 OpenSSL v0.9.8e Light is installed
PECL module for SSH2 is installed
The following code
-
// create connetion
I need to use SFTP to send text files and binary files from one server
to another, but I'm unable to use fopen on the remote server, and if I
send with ssh2_scp_send the files are truncated. I'm assuming the
libssh2-PECL/ssh2 installation isn't the problem because I'm able to
connect using
I need to use SFTP to send text files and binary files from one server
to another, but I'm unable to use fopen on the remote server, and if I
send with ssh2_scp_send the files are truncated. I'm assuming the
libssh2-PECL/ssh2 installation isn't the problem because I'm able to
connect using
I need to use SFTP to send text files and binary files from one server
to another, but I'm unable to use fopen on the remote server, and if I
send with ssh2_scp_send the files are truncated. I'm assuming the
libssh2-PECL/ssh2 installation isn't the problem because I'm able to
connect using
Exist some php scripts (commands) to update files in linux server throgh
sftp protocol ?
Thanks
roman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
Hello everybody,
I already am familiar with PHP's ftp capabilities. My question though is if
anyone has ever used or know wether PHP is compatible or not with sftp
(OpenSSH secure FTP). If so, can I use the same libraries or is there any
PHP extention that I must download in order to enable it.
12 matches
Mail list logo