Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78103 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63776 invoked from network); 15 Oct 2014 23:36:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Oct 2014 23:36:21 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.67 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.67 smtp67.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.67] ([108.166.43.67:42866] helo=smtp67.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/71-55527-4F40F345 for ; Wed, 15 Oct 2014 19:36:20 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id E383A38094D; Wed, 15 Oct 2014 19:36:17 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp1.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 87DEA380935; Wed, 15 Oct 2014 19:36:17 -0400 (EDT) X-Sender-Id: smalyshev@sugarcrm.com Received: from Stass-MacBook-Pro.local ([UNAVAILABLE]. [74.85.23.222]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.2.13); Wed, 15 Oct 2014 23:36:17 GMT Message-ID: <543F04F1.7020303@sugarcrm.com> Date: Wed, 15 Oct 2014 16:36:17 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Park Framework CC: Ralph Schindler , PHP internals References: <8CB055D4-F164-4DF3-B019-684BAE7E016E@ajf.me> <543D47C1.9050009@lerdorf.com> <543D4CE1.5000109@lerdorf.com> <543D6864.10508@gmail.com> <543D85E6.2020507@lerdorf.com> <57b7a3681d6c2c7ae123c8921b2d19d6@mail.gmail.com> <543DCE2B.8010506@sugarcrm.com> <543EE3B8.7010407@ralphschindler.com> <543EFFB7.3090406@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] New globals for PUT and DELETE From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > I added the variable field, how do I get its value, with use the query > method PUT and enctype="multipart/form-data"? > > This debate not for tediousness, this is a real problem, if you want > to use the query method PUT and enctype="multipart/form-data", > variable $_POST is empty and file_get_contents('php://input') is empty No, file_get_contents('php://input') is not empty - I just checked it and if you send PUT request the whole request - files and all - is in the php://input. If you don't see it you might be doing something wrong. You are talking about PUT, but post example about POST for the second time. I'm not sure what you mean by that as certainly your script does not demonstrate what you are saying. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/