Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25325 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23599 invoked by uid 1010); 11 Aug 2006 20:16:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23584 invoked from network); 11 Aug 2006 20:16:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2006 20:16:14 -0000 X-PHP-List-Original-Sender: arpad@rajeczy.com X-Host-Fingerprint: 195.188.213.6 smtp-out3.blueyonder.co.uk Linux 2.5 (sometimes 2.4) (4) Received: from ([195.188.213.6:45588] helo=smtp-out3.blueyonder.co.uk) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 86/BF-28296-C85ECD44 for ; Fri, 11 Aug 2006 16:16:14 -0400 Received: from [172.23.170.139] (helo=anti-virus01-10) by smtp-out3.blueyonder.co.uk with smtp (Exim 4.52) id 1GBdQQ-0001oP-Gi; Fri, 11 Aug 2006 21:16:10 +0100 Received: from [82.35.52.45] (helo=[192.168.123.170]) by asmtp-out1.blueyonder.co.uk with esmtp (Exim 4.52) id 1GBdQO-0005XT-Dl; Fri, 11 Aug 2006 21:16:08 +0100 Message-ID: <44DCE57F.1030407@rajeczy.com> Date: Fri, 11 Aug 2006 21:15:59 +0100 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: RQuadling@GoogleMail.com CC: internals@lists.php.net, unknown@simplemachines.org References: <44DC5B63.1050208@rajeczy.com> <10845a340608110555q366f22f2p76ca5f7023de51b8@mail.gmail.com> In-Reply-To: <10845a340608110555q366f22f2p76ca5f7023de51b8@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Upload progress From: arpad@rajeczy.com (Arpad Ray) Richard Quadling wrote: > 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. Have you tried reading from php://input? Having it all in HTTP_RAW_POST_DATA implies it has all been read at once anyway. The content-length warning is AFAIK unavoidable. I mentioned before that I use an .htaccess file to set post_max_size just for that script - I also set error_reporting there to suppress the warning. I suggest we move this discussion to php-general anyway, since we're no longer talking about internals. Arpad