is there an Python equivalent for the PHP super globals like $_POST, $_COOKIE ?
Steve Holden
steve at holdenweb.com
Thu Nov 11 15:42:23 EST 2010
On 11/11/2010 3:23 PM, r0g wrote:
> On 11/11/10 18:01, Steve Holden wrote:
>> On 11/11/2010 9:22 AM, Stef Mientki wrote:
>>> hello,
>>>
>>> finally got Python running at my server.
>>>
>>> Now I would like to replace the PHP server scripts with Python ( for
>>> easier maintenance).
>>>
>>> But I can't find how th get to PHP's equivalent of $_Post and $_Cookie ?
>>> Google finds lots of links, but I can't find the answer.
>>>
>>> thanks,
>>> Stef Mientki
>>
>> Stef:
>>
>> Moving from one language to anther is not just a matter of
>> transliterating the code. Of you try that you will end up with a messy
>> code base that looks like PHP written in Python.
>>
>> regards
>> Steve
>
> Come on Steve, I thought your role is to encourage / cheerlead here ;D
>
> While you're absolutely right when it comes to complex apps and sites I
> get the impression he's only talking about your common or garden short
> admin scripts. I might be wrong though.
>
> Roger
I'm quite happy to encourage, but I do find it necessary to interject a
warning from time to time. I was pretty sure someone with PHP knowledge
would come to the rescue.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon 2011 Atlanta March 9-17 http://us.pycon.org/
See Python Video! http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list
mailing list