Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25315 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52245 invoked by uid 1010); 11 Aug 2006 12:55:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 52230 invoked from network); 11 Aug 2006 12:55:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2006 12:55:08 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; domainkeys=good DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 64.233.166.180 py-out-1112.google.com Linux 2.4/2.6 Received: from ([64.233.166.180:45157] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id BD/1F-28296-A2E7CD44 for ; Fri, 11 Aug 2006 08:55:06 -0400 Received: by py-out-1112.google.com with SMTP id t32so125549pyc for ; Fri, 11 Aug 2006 05:55:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hH9Luqy1DTar1WjZdaw/Am41AWiKe5IkMgiPVnUJfdYXM0yr3jLihdemVbEI4t75QrKsGivcRS5zyJ0CCFMbDQfJRqQGXqs6cKpAHiS/gsOrLMHmwLOUzBE9no+PKhkaaySx1UuwnLYUaxwMuO+xNeB4IyYNZHvBfPlt+1yOJXI= Received: by 10.35.11.15 with SMTP id o15mr6060137pyi; Fri, 11 Aug 2006 05:55:04 -0700 (PDT) Received: by 10.35.93.18 with HTTP; Fri, 11 Aug 2006 05:55:04 -0700 (PDT) Message-ID: <10845a340608110555q366f22f2p76ca5f7023de51b8@mail.gmail.com> Date: Fri, 11 Aug 2006 13:55:04 +0100 Reply-To: RQuadling@GoogleMail.com To: "Arpad Ray" Cc: internals@lists.php.net, unknown@simplemachines.org In-Reply-To: <44DC5B63.1050208@rajeczy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44DC5B63.1050208@rajeczy.com> Subject: Re: [PHP-DEV] Re: Upload progress From: rquadling@googlemail.com ("Richard Quadling") On 11/08/06, Arpad Ray wrote: > Unknown W. Brackets wrote: > > Fair enough. I was under the (now obviously wrong) impression that > > setting post_max_size to 0 wouldn't let me get to the post data. > > Of course then $_POST isn't available, so if you want to handle normal > POST data in the same request it also has to be manually parsed. I use > an .htaccess file to limit this to the one file handling these requests. > > > But that's still setting you dependent on it being Apache. I would > > need (if I were to add this feature to any of my software) to write > > this in code that can run on IIS or as CGI (because it is intended > > for end-users.) > > I believe you could use $_SERVER/$_ENV['CONTENT_LENGTH'] in CGI, I don't > know about the IIS ISAPI module though. > > Arpad > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > If I set Windows ISAPI's post_max_size to 0 bytes, I get ... Warning: POST Content-Length of 9261 bytes exceeds the limit of 0 bytes in Unknown on line 0 My handler is . There is no need to actually handle the upload. and _SERVER["CONTENT_LENGTH"] 9261 _SERVER["CONTENT_TYPE"] multipart/form-data; boundary=---------------------------1753618095350 _SERVER["HTTP_CONTENT_LENGTH"] 9261 _SERVER["HTTP_CONTENT_TYPE"] multipart/form-data; boundary=---------------------------1753618095350 But even with ... always_populate_raw_post_data On I get ... Notice: Undefined variable: HTTP_RAW_POST_DATA (for $HTTP_RAW_POST_DATA) and Notice: Undefined index: HTTP_RAW_POST_DATA (for $_SERVER['HTTP_RAW_POST_DATA']). Assuming you CAN get the length, it may be that you cannot actually get the data. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"