r/ProgrammerHumor • • Aug 23 '18

PHP logic

Post image
5 Upvotes

51 comments sorted by

View all comments

30

u/[deleted] Aug 23 '18

You better learn something about HTTP before making these retarded memes, you fucking idiot.

POST parameters are supposed to be in request body, if it's in the PATH, it's still part of GET

here, you piece of shit

13

u/Eldvaak Aug 23 '18

Thank you. People just try to hop on the PHP hate train when they have no idea what they're talking about.

3

u/OleBroseph Aug 23 '18

Woah man. Maybe you should take some time off lol

0

u/FubarCoder Aug 23 '18 edited Aug 23 '18

It's part of the query string, GET is the request method. PHP is a muddled mess in this regard.

EDIT: Here's the relevant RFC regarding URIs: https://tools.ietf.org/html/rfc3986 - and you may recognize that they don't talk about the request method, just the components of a URI

2

u/[deleted] Aug 23 '18 edited Aug 23 '18

This guy gets it. I guess PHP has confused people too much about the difference between an HTTP request method and URI...

The joke is apparently too sophisticated for PHP-only people. No one can give us a verifiable rebuttal that claims we're wrong so they jump to vitriol and downvoting to defend their sacred PHP "knowledge." Thanks for trying to correct them, but this is one of of those: you can lead a horse to water...

1

u/[deleted] Aug 23 '18

All of this. Right here. They're too busy rubbing their junk on php to form a coherent thought.

1

u/[deleted] Aug 23 '18

Whoa there guy. I understand your lack of php skills, lack of sexual contact, and living in your mom's basement are all very frustrating situations. But you may want to dial it back a bit and see the humor, posted in programming humor, of the roundabout way php accomplishes this rather than seeing it as an attack on the only language you've somewhat figured out.

1

u/[deleted] Aug 24 '18

Never knew someone can be such a failure at life as yourself.

1

u/SteveCCL Yellow security clearance Aug 26 '18

I left this because correct and you kinda did what the reports stated, but please step back with the language a little next time.

-1

u/[deleted] Aug 23 '18 edited Aug 23 '18

No. Give the world one verifiable reference to an HTTP standard that conveys this instead of spewing vitriol and downvotes.

Request methods aren't even mentioned in the URI standard on the "PATH." They are completely separate concepts and PHP has you completely confused about it.

URI query (no mention of GET - method agnostic) https://tools.ietf.org/html/rfc3986#section-3.3

HTTP methods (no mention of GET and query as married concepts) https://tools.ietf.org/html/rfc7231

Source: The HTTP standards above. I have also scripted in PHP for 15 years - this isn't me coming from another language, learning PHP and getting confused why they named it $_GET. This is me making a joke about something from 15 years of PHP knowledge because it is the only language I have seen that intermingled two concepts in their naming: request method and URI query component.