How to upload files to a remote server?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pjcvijay
Forum Commoner
Posts: 25
Joined: Tue Sep 09, 2008 6:12 am

How to upload files to a remote server?

Post by pjcvijay »

I want to transfer images to a remote server, I have dedicated server for storing images, when user uploads files in my site. That image server supports only SFTP protocol, and I tried to use http://sourceforge.net/projects/libssh2/, but it did not work. I was not able to connect to my dedicated server. Then I tried to setup http://pecl.php.net/package/ssh2, but I did not find latest release and I could not install it on my server.

Does anyone knows how to transfer files to a remove server using PHP script through SFTP?
Does anyone knows how to setup SSH2 in my server?
If you have done this before or you know how to do this, please let me know.

I would be happy if you provide real examples!!!

Thanks in advance,
Post Reply