On Fri, February 1, 2008 7:45 pm, szalinski wrote: > On Thu, 31 Jan 2008 07:13:55 -0000, Per Jessen <per@xxxxxxxxxxxx> > wrote: > Well I got it to work, much thanks to Richard Lynch, but now everytime > I > download a file, it is corrupt. For example, when I download small > .rar > file, just to test, it is always corrupt ('Unexpected end of > archive'). I > also cleared my browser cache just to be sure, but same problem. > > Here is the code as it stands. I just can't get my head around why it > wouldn't be working as it is... Open the file you download with a text or hex editor. Compare to the original. If you can't spot the problem right off, download the original with FTP and use "diff" to compare the two. Or, if you don't have "diff", upload the broken download with FTP and use "diff" on the server. If it's OK on the server, and not coming out OK in the download, figure out what's different between the two. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php