Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40342 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68805 invoked from network); 8 Sep 2008 13:19:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2008 13:19:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 64.233.170.190 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 64.233.170.190 rn-out-0910.google.com Received: from [64.233.170.190] ([64.233.170.190:23790] helo=rn-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 15/C6-58883-E4625C84 for ; Mon, 08 Sep 2008 09:19:11 -0400 Received: by rn-out-0910.google.com with SMTP id k40so51328rnd.0 for ; Mon, 08 Sep 2008 06:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=p59Aivk3nJv00KTQk6NS5sR5Fs60SSMY6cq5ohSKO+0=; b=xJtoskOSgiEqFdEtm2Hiro1c41f0ADv4O7v3q28wYH8P+Yq/So4eaEQWb0+yA5DwmP R+UovdAGwRngbej8504KthLC4w7A20TuTyp0tsSEFnaXnOdsV1LVYMhePYdKu9LYgbrm oDDfqI1J0vAjcyIMAdm4m9JCZY/MzvEXWYtGw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jSzqx3gePvYc+IhlMFDgUsX0Bqnh1t87P15+o6XoLB/VDaiV+hv7yXgxBH+iOk2gxZ jHw7DNnemWHMyxJi7S3HzxL/hQwJvv6qE/eHj3FQCWmnbobvd119MdGHsu7MQxjkaWHK Q9lMPfYGFfvRuUNpN3B9BTrg2MhacjxsqqpQA= Received: by 10.103.251.2 with SMTP id d2mr10203079mus.88.1220879947380; Mon, 08 Sep 2008 06:19:07 -0700 (PDT) Received: by 10.103.212.17 with HTTP; Mon, 8 Sep 2008 06:19:07 -0700 (PDT) Message-ID: <10845a340809080619x156de004nbf634686287c1053@mail.gmail.com> Date: Mon, 8 Sep 2008 14:19:07 +0100 Reply-To: RQuadling@GoogleMail.com To: "PHP Internals List" In-Reply-To: <200809081319.53187.arnaud.lb@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200809081218.02471.arnaud.lb@gmail.com> <200809081319.53187.arnaud.lb@gmail.com> Subject: Re: [PHP-DEV] [PATCH][HEAD] Upload progress in sessions From: rquadling@googlemail.com ("Richard Quadling") 2008/9/8 Arnaud Le Blanc : > Hi, > > On Monday 08 September 2008 13:06:50 Martin Jansen wrote: >> On Mon, Sep 8, 2008 at 12:18 PM, Arnaud Le Blanc > wrote: >> > The patch allows to store upload progress informations in session > variables. >> > These informations can be retrieved by an other script while the upload is >> > still in progress, allowing to provide feedback to the user. >> > Implementing this in the sessions extension makes this feature available > to >> > every one. >> > Using the session extension for this purpose also allows to use the > different >> > storage backends available. >> > I have written a RFC/documentation here: >> > http://wiki.php.net/rfc/session_upload_progress >> >> Would it be possible to use something like >> $_SESSION['foo']['upload_progress_123'] instead of storing the >> information in the top-level session space? I can imagine there being >> frameworks and such that put their session stuff in some special >> container like $_SESSION['foo'] so that their session data does not >> interfere with the data of other components or the application that >> makes use of the framework. > > Yes, this can be done. The prefix setting ("upload_progress_" by default) was > added for that purpose, but it may be possible to use $_SESSION[prefix][name]. > >> >> Martin >> > > Regards, > > Arnaud > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Would maybe having $_SESSION['_Files'] == $_FILES for multiple uploads and have the current size uploaded as a new entry in $_FILES be easier? That way no additional configuration option. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"