Thanks for the offer of checking my script. Although it relies on quite a few functions which are defined in include files, the actual upload form is fairly basic and I can't see that it would work for some file types/sizes and not others. (Incidentally, magic_quotes_runtime has always been set Off, and the file corruption I'm seeing is typically only a few characters in a 2Mb file)
I'm beginning to think it is a more basic problem with Apache/HTTP. I've recently noticed that the browser we are obliged to work with at the moment (Netscape 4.74) is sending nearly all its requests as HTTP 1.0. I believe this has a serious impact on performance, so I wondering if it might also introduce corruption. Anybody know why my browser uses HTTP 1.0 and not 1.1? I can't see any way of configuring it but I know it is compatible with HTTP 1.1. Thanks again, -----Original Message----- From: Ryan Marrs [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 12:45 PM To: 'Stevens, Julian C'; 'php-windows(a)lists.php.net(p)INTERNET' Subject: RE: [PHP-WIN] Re: File corruption during HTTP Upload Importance: Low Hrrm, maybe magic_quotes_runtime has something to do with it also. I remember having this problem, and if you open the file with vedit, it will show a ton of \0\1\x and things like that. Per chance can you send me the script and I will test it and see what I can make of it? Ryan -----Original Message----- From: Stevens, Julian C [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 4:23 AM To: 'Ryan Marrs'; 'php-windows(a)lists.php.net(p)INTERNET' Subject: RE: [PHP-WIN] Re: File corruption during HTTP Upload Thanks for the advice. I did have magic_quotes_gpc on, but turning it off hasn't fixed the problem. :-( I have actually found that corruption showed up when magic_quates_gpc was turned on. I would check that if I were you. Ryan "Julian C Stevens" <[EMAIL PROTECTED]> wrote in message news:"DSLEXXCH3-020305122516Z-36776*/PRMD=BAEDSL/ADMD=GOLD 400/C=GB/"@MHS... > I am running PHP 4.1.1 with Apache 1.3.20 on Windows NT, and have recently > started observing a bizarre file corruption effect. > I first noticed this when transferring an RTF file with an embedded image. On > arriving at the web server, the image disappeared and, after examining the > file I found 4 very small differences - the file size was not altered at all. > > Now I have found that zip files are becoming corrupted in transit. A perfectly > good zip file appears on the webserver with various CRC errors! > > I'm using a simple http form to upload the files, and the problem only seems > to occurr if the files are fairly large (typically 2Mb or more). > However, I need to be able to transfer much larger files than these (intranet > only). > > Please can anyone suggest where this apparent corruption could be coming from. > > Thanks, > > Julian Stevens > -- ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php