ftp_put() [function.ftp-put]: Cannot STOR. No permission
Hi,
Can someone help. I'm trying to upload a file upto a server via ftp.
I have had to connect through ssl connection as the server asks for a certificate.
Can you see where im going wrong?
I have the below code:
$connection = ftp_ssl_connect($server);
$login = ftp_login($connection, $ftp_user_name, $ftp_user_pass);
if (!$connection || !$login) {
die('Connection attempt failed!');
}else{
$upload = ftp_put($connection, $file, $remote_file, FTP_BINARY);
}
if (!$upload) { echo 'FTP upload failed!'; }
error message : Warning: ftp_put() [function.ftp-put]: Cannot STOR. No permission
|