Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B82AC4768F6 for ; Tue, 10 Dec 2002 14:13:21 -0500 (EST) Received: from mail4.wannafind.dk (mail4.wannafind.dk [80.196.101.186]) by postgresql.org (Postfix) with ESMTP id 3DE77476538 for ; Tue, 10 Dec 2002 14:03:53 -0500 (EST) Received: from [62.242.82.231] by mail4.wannafind.dk with SmartMax MailMax for vev@michvhf.com at Tue, 10 Dec 2002 20:03:53 +0100 Message-ID: <1039547033.14449@mail4.wannafind.dk> From: "Kelvin Varst" To: "Vince Vielhaber" Cc: "Postgresql PHP" Subject: Re: Large file upload Date: Tue, 10 Dec 2002 20:03:52 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <1039520436.6606@mail4.wannafind.dk> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/28 X-Sequence-Number: 1703 Hi, The upload takes more than 30 seconds, but I get the error immediately. I dont think that the webserver is aware of the page will take longer than 30 seconds to upload and therefore sends an error at the beginning of the upload. Kelvin :-) -----Oprindelig meddelelse----- Fra: Vince Vielhaber [mailto:vev@michvhf.com] Sendt: 10. december 2002 12:41 Til: Kelvin Varst Cc: Postgresql PHP Emne: Re: [PHP] Large file upload On Tue, 10 Dec 2002, Kelvin Varst wrote: > > Hi, > > I'm trying to upload large files via my homepage. I'm using a form: > print "
method=\"POST\">"; > > And with files up to approx 500kb it works. But with larger files, the > browser can't find the page, and if I refresh the page, I get some query > errors. In the php.ini the post_max_size is set to 8M. If it's taking longer than about 25-30 seconds you could be timing out. Try putting set_time_limit(0) at the top of the script. If it works you might want to try replacing the 0 with a reasonable time limit. The time is in seconds. Vince. -- Fast, inexpensive internet service 56k and beyond! http://www.pop4.net/ http://www.meanstreamradio.com http://www.unknown-artists.com Internet radio: It's not file sharing, it's just radio.