News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Reddit.com:
Year Old Bug Request for $_PUT Interested in /r/php's Opinion
October 23, 2012 @ 09:48:12

A discussion has started up on Reddit.com about the request for a "$_PUT" superglobal to match the already existing "$_POST" and "$_GET" (as is mentioned in this bug).

Data that is posted to PHP via the PUT method is not parsed at all and is not available to PHP. This is particularly problematic for data sent encoded as 'multipart/form-data'. [...] This is something that would help every RESTful interface that people are trying to do with PHP. There are many people who have these problems and have to implement (usually incomplete and/or buggy) PHP solutions.

In the Reddit post there's a mixed set of opinions - some say that things work well enough as is (content pulled from the raw stream) and others say that adding something like this makes the HTTP support more complete and functional.

0 comments voice your opinion now!
rest put http method support superglobal


blog comments powered by Disqus

Similar Posts

Lorna Mitchell: New Book: PHP Web Services

Davey Shafik's Blog: Next Generation REST Web Services Client

Gary Hockin's Blog: Zend Framework 2 and a Restful Application

SitePoint PHP Blog: How to Create Your Own Twitter Widget in PHP, Part 1

Chris Cassell's Blog: Creating Magic Methods in PHP


Community Events

Don't see your event here?
Let us know!


language version example extension introduction php7 security release podcast laravel5 list opinion interview series voicesoftheelephpant laravel library framework community api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework