Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39490 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88946 invoked from network); 31 Jul 2008 01:01:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2008 01:01:25 -0000 Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:45592] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/F4-60033-0EE01984 for ; Wed, 30 Jul 2008 21:01:25 -0400 Received: (qmail 30829 invoked by uid 507); 31 Jul 2008 01:01:17 -0000 Received: from ppp-88-217-23-214.dynamic.mnet-online.de (HELO ?192.168.1.101?) (postmaster%schlueters.de@88.217.23.214) by mail4.netbeat.de with ESMTPA; 31 Jul 2008 01:01:17 -0000 To: "Tore B. Krudtaa" Cc: internals@lists.php.net In-Reply-To: <758739.49501.qm@web52606.mail.re2.yahoo.com> References: <758739.49501.qm@web52606.mail.re2.yahoo.com> Content-Type: text/plain Date: Thu, 31 Jul 2008 03:01:16 +0200 Message-ID: <1217466076.5408.20.camel@goldfinger.johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Making PHP upload hooks available through session variables? From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Wed, 2008-07-30 at 13:46 -0700, Tore B. Krudtaa wrote: > As most of you probably know Rasmus Lerdorf made som upload hooks > available in PHP 5.2 some long time back. > This was great news for those that wanted more control of uploads > and/or wanted to give "real time" feedback to client about upload > progress, and had APC installed as well. > > Most PHP installations does not have APC installed, so therefore the > upload hooks are not available. > > I would like to be able to use the upload hooks without installing > the APC. There's also a package called uploadprogress or something like that in PECL. > I would eventually like to be able to use those upload hooks using > session variables. I think that's not possible in a good way as the uploading process would have to open and parse the session file, update the status, serialize it and store it again to disk everytime the status changes (aka. every few bytes received), APC does that using shared memory, uploadprogress using special files in /tmp, I think. johannes