I have written code that uses both the ftp_put and ftp_get functions within PHP. The last argument in the call to either of these functions is either FTP_ASCII or FTP_BINARY according to the php.net manual.
Question1: I have read a CORE PHP book lately and it indicates that FTP_IMAGE is an argument, NOT FTP_BINARY. I tried FTP_IMAGE in my code, and the results are the same as if I used FTP_BINARY.
Question2: In addition to this test I tried using an arbitrary value like "FTP_MBINARY" and the program still runs fine.
Question3: The reason for trying the senarios above is because I am trying to FTP a MAC file, and I am loosing some of the file attributes when the file is sent via ftp_put to a site. FTPing everthing else is fine.
For instance if I FTP a MAC "word" file, the resulting file on the server does not have the "word" attributes associated with it, so that if you double click on the icon, it opens "word" and the file within it. What happens is that you are asked for what application you wish to use to open the document.
Does anyone have experience with the FTP_PUT and FTP_GET routines?
Does anyone know where I can get more information on the FTP_PUT and FTP_GET arguments, specifically the FTP_ASCII and FTP_BINARY arguments.
Does anyone have any experience having problems ftping MAC files? THIS WOULD BE MOST HELPFUL!!!
Any help is appreciated...GREATLY!!!
Thanks