tushar
tushar

Reputation: 307

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?

Upvotes: 0

Views: 682

Answers (1)

Asif Mulla
Asif Mulla

Reputation: 1664

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.

Upvotes: 1

Related Questions