简体   繁体   中英

unable to download or upload the files using ftp script

i am unable to download or upload the files using ftp script. i can connect to ftp server find the size of the file using ftp_size but when i download it using both ftp_get and ftp_fget the file is empty.i cant even seem to see the list of directories using ftp_nlist().please help me out here?

Since PHP is a server-side language, the files you get using FTP_get() will end up on the server that is running the PHP script. You need to make sure that the directory on your server that is receiving the files has proper write permissions. I suggest CHMOD the dir to 777 to make sure that it works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM