JehovahsWord
09-16-2003, 03:26 PM
hi,
like I said before, I am making an ftp script. but now I'm making a part where the person can upload files. I read the php manual about ftp_get, and it said there are four necessary parts of the ftp_get functions. those being: resource id,, remote file, local file, and the mode. for the mode part, it said to use either FTP_ASCII or FTP_BINARY. I did, and I got an error. it basically said I wasn't allowed to give a string for the fourth parameter. so, I tried using integers. and then it uploaded successfully. my question is, is this the correct way to do this? and why does the php manual mention FTP_ASCII and FTP_BINARY? and, if you are suppose to use integers, is 0 for ascii and 1 for binary? thanks
Brandon
like I said before, I am making an ftp script. but now I'm making a part where the person can upload files. I read the php manual about ftp_get, and it said there are four necessary parts of the ftp_get functions. those being: resource id,, remote file, local file, and the mode. for the mode part, it said to use either FTP_ASCII or FTP_BINARY. I did, and I got an error. it basically said I wasn't allowed to give a string for the fourth parameter. so, I tried using integers. and then it uploaded successfully. my question is, is this the correct way to do this? and why does the php manual mention FTP_ASCII and FTP_BINARY? and, if you are suppose to use integers, is 0 for ascii and 1 for binary? thanks
Brandon