2 things to note about Mac files... some browsers (IE) intermittently perform a MacBinary encoding of the file, and neglect to inform the server application. The data will be unparsable until decoded. You will need to first do a check to see if the file is MacBinary, and then execute some kind of utility to decode it on your Windows / Unix server. There's a few utilities available:

http://download.com.com/3120-20-0.html?qt=macbinary&tg=dl-2001

Second, the end-of-line character on the mac is just '\r', as opposed to '\r\n' on windows, and '\n' on Unix... it looks like you already found this out... so a lot of the useful PHP utility functions may not work well. You may be stuck using 'fopen' and 'fgets' to parse the file:

http://www.php.net/manual/en/function.fgets.php

--

Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to