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?
A:
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.
Asif Mulla
2010-10-14 12:59:40
CHMOD 777 only for testing only, then set the permissions/ownership correctly
Phill Pafford
2010-10-14 13:11:54
ok may be the permission may be an issue but then why is ftp_nlist('/') not showing all the directorie
tushar
2010-10-14 13:45:10