newbreed65 Posted July 1, 2009 Share Posted July 1, 2009 Hi I am currently trying to transfer a file from my server to another one via SFTP and I’m not having any luck at all. it just keeps failing to connect although I know the ftp detail are correct since I can connect it via core ftp, can anyone help me with SFTP transfers? here is my current code $ftp_id = ftp_ssl_connect($ftp_server) or die ('Cant Connect'); $login_result = ftp_login($ftp_id, $ftp_user_name, $ftp_user_pass)or die ('Cant login'); $upload = ftp_put($ftp_id, $ftp_path . $file_name, $file_path, $mode)or die ('upload dint work'); ftp_close($ftp_id); Link to comment https://forums.phpfreaks.com/topic/164375-php-sftp-transfers/ Share on other sites More sharing options...
J.Daniels Posted July 1, 2009 Share Posted July 1, 2009 Do you have SSH access on the server?? Link to comment https://forums.phpfreaks.com/topic/164375-php-sftp-transfers/#findComment-867190 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.