Hello Jason.

I had similar problems on windows. I found out that somewhere in my script
there was a fopen() and a consequent file read, which behaves different on
Unix than on windows when used on binary files. I could solve this by using
the b-switch with fopen(), forcing binary file (see docs for precise use).
It has no effect on Unix.

Hope this helps,

Marcel.


---------------------------------------------------
Marcel Dormanns, system manager
Kossuth Zsuzsanna Technical and Grammar School
6800 Hodmezovasarhely, Kaszap u 29, Hungary
Tel(work) +36-62-241811 Fax(work) +36-62-244884
SMS: [EMAIL PROTECTED]

 

-----Eredeti üzenet-----
Feladó: Jason Lam [mailto:[EMAIL PROTECTED]]
Küldve: Tuesday, May 15, 2001 01:15
Címzett: [EMAIL PROTECTED]
Tárgy: Macbinary? How to deal with it?


I am having a lot of trouble with letting user upload files and download
again (target group - mac user). I tried with many application files that
does not work (executable in PC terms). Everytime I upload this kind of
files, it will become corrupted, the content type of the upload is
application/x-macbinary. Is this the right type?

I have tried to make some self extracting file with stuffit (MacOS format,
filename.sea) then upload it. FTPing it back down, the file is already
corrupted, however just normal FTP won't corrupt the file, I am assuming
something has to do with handle of the uploaded file.

Can anyone provide some hints as to how to properly handle these mac files?

Jason Lam


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to