\ DriveHQ Customer Support Forum \
읽음/답글 : 30234/2
  • whiteredxgh
  • (2게시물)

I would need to download a file over FTP from DriveHQ but it always doesnt have permissions could someone help me with that? I verified that both my ftp password and username are correct 


2019-01-01 오전 8:07:05

  • whiteredxgh
  • (2게시물)
주제: Re:How can I download a File through FTP in PHP

If you try to download a file from a folder shared to you by another user, please make sure that folder is still shared to you, and that the folder was shared with Download or a higher level permission.

If you try to download a file from your own account, there should be no permission issue at all. Please verify that you can download files using FileZilla first and check if your code is sending the same (or similar) FTP commands. We usually don't support your own code or custom software. But if you have a business level subscription, you can try to send an email to DriveHQ customer support. 


회신하다
2019-01-17 오전 11:19:57

  • Annelot
  • (1게시물)
주제: Re:How can I download a File through FTP in PHP

This will work - :)         

 

$conn = ftp_ssl_connect(IMG_FTP_HOST);

 
if(!$conn)
{
exit("Can not connect to server: ".IMG_FTP_HOST."\n");
}
 
if(!ftp_login($conn,IMG_FTP_USERNAME,IMG_FTP_PASSWORD))
{
ftp_quit($conn);
exit("Can't login\n");
}
 
ftp_set_option($conn, FTP_USEPASVADDRESS, false); // set ftp option
 
ftp_pasv($conn, true); //make connection to passive mode
 
ftp_chdir($conn,$DIR);
 
$files = ftp_nlist($conn, '.');

회신하다
2020-03-06 오전 5:06:05

즐겨찾기에 추가하고 공유하세요
빠른 답변

제발 로그인 그리고 답장하세요. DriveHQ 회원이 아니신가요?


Leading Cloud Surveillance service

Leading Enterprise Cloud IT Service Since 2003