[futurebasic] Re: [FB] [X-FB] file size problem (solved)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2005 : Group Archive : Group : All Groups

From: tedd <tedd@...>
Date: Mon, 28 Mar 2005 09:36:01 -0500
Hi gang:

I solved my problem, which was basically ignorance -- but, from what 
else do questions spring?

In any event, what I ultimately reported was two identical files 
(identical by size, and inspection via Hex Editor, BBEdit), which 
behaved different on my server.

However, while the files appeared identical in the text portions of 
HexEditor and BBEdit, the HEX portions differed ever so slightly.

The problem was line endings. The "Generic Text Unix line ending" 
file had lines ending with HEX 0D, whereas the "Mac Text" line 
endings were HEX 0A. This also meant that the length of the files 
were identical, which further added to my confusion.

After writing a conversion in php to change all occurrences of 0A to 
0D, everything ran smooth on my server.

I also made a Windoze file of the same data and found it's line 
endings were 0A0D, which was also considerable length to the file -- 
all of which was also fixed by my php routine.

So now, I can upload Unix, Mac and Windoze files without problems.

Thanks for letting me bounce this problem off this group.

tedd

PS: Do any of you belong to a php list? If so, please contact me privately.

-- 
--------------------------------------------------------------------------------
http://sperling.com/