You are here: Re: 5.2.2 and POST data change? « PHP Programming Language « IT news, forums, messages
Re: 5.2.2 and POST data change?

Posted by Rami Elomaa on 05/20/07 17:49

Schraalhans Keukenmeester kirjoitti:
> At Tue, 15 May 2007 09:17:36 -0600, Tom Harrington let his monkeys type:
>
>> My web host updated yesterday from PHP 5.1.1 to 5.2.2, and one of my
>> scripts immediately broke, although the 5.2.2 release notes don't seem
>> to indicate I should have a problem.
>>
>> The script relied on having $HTTP_RAW_POST_DATA set. Starting yesterday
>> it's always an empty string.
>>
>> I guessed that my web host had changed the setting of the
>> always_populate_raw_post_data flag. However they assure me that their
>> php.ini did not change with the update.
>>
>>
>> I've worked around the problem by using
>> file_get_contents("php://input") [...]
>
> This one's new to me. Anyone willing to explain what
> file_get_contents("php://input") exactly fetches?
> How hould I interpret the 'php' protocol, and what does //input point to?
> Tried it on my host, got an empty string.

Read the fine manual :)
http://fi2.php.net/manual/fi/wrappers.php.php

I suppose if it's empty then it is something you can configure to be set
or not, and it defaults to no supposedly. Actually I got interested in
this as well and I'll try to find if this is something you need to
configure. Looking at my phpinfo() I see a line that says

Registered PHP Streams: zip, php, file, data, http, ftp, compress.bzip2,
compress.zlib, https, ftps

php is mentioned in it so you'd think that it should exist, but alas, I
get an empty string just as well.

Strange. gotta look into this some more...

--
Rami.Elomaa@gmail.com

"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация