Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25265 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83889 invoked by uid 1010); 9 Aug 2006 15:19:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 83857 invoked from network); 9 Aug 2006 15:19:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2006 15:19:56 -0000 X-PHP-List-Original-Sender: arpad@rajeczy.com X-Host-Fingerprint: 217.206.16.249 mailhost.ipoints.co.uk Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222) Received: from ([217.206.16.249:26268] helo=mailhost.ipoints.co.uk) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 4D/F1-30310-E0DF9D44 for ; Wed, 09 Aug 2006 11:19:48 -0400 Received: from [192.168.0.32] ([192.168.0.32]) by mailhost.ipoints.co.uk (Merak 5.4.2) with SMTP id BLB37211; Wed, 09 Aug 2006 16:19:36 +0100 Message-ID: <44D9FCC4.8030408@rajeczy.com> Date: Wed, 09 Aug 2006 16:18:28 +0100 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: "Unknown W. Brackets" CC: internals@lists.php.net References: <57792e850608081529g25f22a28wf768fcffe8801bb5@mail.gmail.com> <44D91BE0.3040303@filemobile.com> <1944df00608081956p55c161c2o8f0aa6329e682918@mail.gmail.com> <39.CC.30310.132F9D44@pb1.pair.com> In-Reply-To: <39.CC.30310.132F9D44@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Upload progress From: arpad@rajeczy.com (Arpad Ray) If you set post_max_size to 0, you can parse the post data yourself from php://input. Combine that with the Content-Length value from apache_request_headers() and you have everything you need for a progress monitor. I don't mean to detract from the hopefully soon-to-come support in the core, just to point out that it's already possible without a patch. I have some code using this method in case anyone's interested, email me off-list. Arpad Unknown W. Brackets wrote: > How is that? You can't get any feedback from PHP (except, now, by > installing/writing an extension) about how far along the upload is - > no matter how much JavaScript you use. And the browser won't tell you. > > Some people have scanned the /tmp directory for possible PHP uploads, > but this obviously doesn't work even a bit for concurrent users. > > -[Unknown] > > -------- Original Message -------- > >> Or a lovely javascript concoction ;) >> >> -bok >> >> On 8/9/06, Evert Pot wrote: >>> >>> Easiest way to go would then be flash or a java applet.. all the other >>> methods i can think of are either php extensions or perl.. >>> >>> steve wrote: >>> > We do a "web 2.0" type upload, and show a spinner. When the file is >>> > large or the connection slow, people sometimes abort thinking that >>> > there was a problem. I'd like to show a progress bar. Is this >>> possible >>> > yet? Which version? I can't use perl on these servers (PHP only), so >>> > I'm SOL. I've used a patch before, but a client does not want to >>> use a >>> > hacked up PHP on production servers. >>> > >>> >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >> >> >