RetroFed Forums
Your home away from modern life.
PHP: you get your burger
Post Reply
AuthorMessage
IanTwenty
piefed.social
IanTwenty@piefed.social
Joined: 2025-10-17
Posted:   Subject: PHP: you get your burger Quote

Titled 'PHP How It Works' we see visiting a website likened to ordering a burger. The image shows a woman at a table ordering from a waiter, the waiter visits the kitchen, the waite returns with the burger.

"To understand how PHP works, we’re taking you to a restaurant.

Think of going online to visit a website like ordering some food.

When you enter the site, the web server takes your request and runs the PHP code - like a waiter taking your order to the kitchen.

The PHP code searches the site's database and follows a script to prepare the page - like a chef following a recipe to make a meal.

When complete, the web server then delivers the page to the browser, and it appears on screen - that’s your waiter bringing you your dish."

https://www.bbc.co.uk/news/live/ckgel5xp2xv9t?post=asset%3Ac8185d02-3e14-4e83-9a99-6d3be2de04bd#post

126   Original
Blue_Morpho
lemmy.world
Blue_Morpho@lemmy.world
Joined: 2023-11-14
#2 Posted: · edited   Subject: Re: PHP: you get your burger Quote Reply

How it should work for 99% of websites.

https://motherfuckingwebsite.com/

64
username_1
discuss.tchncs.de
username_1@discuss.tchncs.de
Joined: 2026-06-01
#3 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Wow! That's why I love analogies -- in most cases they don't make any sense especially if you are not a specialist in the theme.

17
one_old_coder
piefed.social
one_old_coder@piefed.social
Joined: 2026-02-08
#4 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Wait till you learn about this new CGI thing, you'll be amazed about what it can do: https://en.wikipedia.org/wiki/Common_Gateway_Interface

14
Avicenna
programming.dev
Avicenna@programming.dev
Joined: 2025-11-07
#5 Posted: · edited   Subject: Re: PHP: you get your burger Quote Reply

How it should work for 99% of websites. https://motherfuckingwebsite.com/

most people who have seen the old internet probably feel this rage

20
sem
piefed.blahaj.zone
sem@piefed.blahaj.zone
Joined: 2025-09-04
#6 Posted: · edited   Subject: Re: PHP: you get your burger Quote Reply

How it should work for 99% of websites. https://motherfuckingwebsite.com/

Ublock blocks this for some reason

EDIT turns out the reason is it appears to be infected with a botnet

12
TootSweet
lemmy.world
TootSweet@lemmy.world
Joined: 2023-08-04
#7 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Why is everybody talking about PHP lately? Am I out of the loop?

9
username_1
discuss.tchncs.de
username_1@discuss.tchncs.de
Joined: 2026-06-01
#8 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Why is everybody talking about PHP lately? Am I out of the loop?

They fixed a bunch of vulnerabilities there which were known for years but neither hackers nor PHP developers cared much until recently.

14
TrackenDaKracken
lemmy.world

TrackenDaKracken@lemmy.world
Joined: 2026-09-29
#9 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Ublock blocks this for some reason EDIT turns out the reason is it appears to be infected with a botnet

Not in Librewolf, at least. Ublock and Noscript enabled. Site still shows.

7
softotteep
pawb.social
solxix@pawb.social
Joined: 2025-12-03
#10 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Not in Librewolf, at least. Ublock and Noscript enabled. Site still shows.

You probably don't have these filter lists enabled:
πŸ“’ HaGeZi - Multi PRO mini
πŸ” HaGeZi - Threat Intelligence Feeds - Mini

9
OpenStars
discuss.online

OpenStars@discuss.online
Joined: 2023-12-31
#11 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Wait till you learn about this new CGI thing, you'll be amazed about what it can do: https://en.wikipedia.org/wiki/Common_Gateway_Interface

I doubt it will cook burgers for you though πŸ˜• πŸ˜” πŸ”πŸ΄πŸ€€

For some reason I am hungry all of a sudden...

5
UnfairUtan
lemmy.world
UnfairUtan@lemmy.world
Joined: 2023-07-07
#12 Posted:   Subject: Re: PHP: you get your burger Quote Reply

They fixed a bunch of vulnerabilities there which were known for years but neither hackers nor PHP developers cared much until recently.

Wait it was known!? They didn't just discover it and fixed it quickly?

3
username_1
discuss.tchncs.de
username_1@discuss.tchncs.de
Joined: 2026-06-01
#13 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Wait it was known!? They didn't just discover it and fixed it quickly?

No, they chewed snots for years because there wasn't a trivial and straightforward fix and exploit looked too "theoretically possible". But some time ago(months? year?) some company showed them a working exploit, so they started to think how to actually fix the problem. All that time they kept all in secret so hackers wouldn't know. But the fix had leaked, letting hackers to figure out what was the vulnerability in the first place, so snot-chewing was replaced with running-and-screaming. By now everything is fixed for those who cared to update\recompile. Something like that.

11
Ephera
lemmy.ml
Ephera@lemmy.ml
Joined: 2020-05-31
#14 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Wow! That's why I love analogies -- in most cases they don't make any sense especially if you are not a specialist in the theme.

Well, they do have some prose in the link that OP also posted, but yeah, it is a bit rough, especially if you're trying to understand the vulnerability..

2
twinnie
feddit.uk
twinnie@feddit.uk
Joined: 2023-07-20
#15 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Most of my experience with PHP is from pen testing so most of my orders look something like <?$_GET[0]?>

6
jokro
feddit.org
jokro@feddit.org
Joined: 2024-06-25
#16 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Why is everybody talking about PHP lately? Am I out of the loop?

To add what the others said, yesterday morning there was news that every php version is vulnerable but the fixes were published very late in the day (or whenever depending on timezone) thus there was a 8+hours of unceartiny and fear for administrators. A lot of websites shut down due to that.

7
tourist
lemmy.world

tourist@lemmy.world
Joined: 2023-06-12
#17 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Well, they do have some prose in the link that OP also posted, but yeah, it is a bit rough, especially if you're trying to understand the vulnerability..

holy fuck

70% of websites are running PHP?

are they sure?

Am I going to find a php binary in a node_modules directory

6
chameleon
fedia.io

chameleon@fedia.io
Joined: 2024-06-21
#18 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Wait it was known!? They didn't just discover it and fixed it quickly?

It's not a quick or easy fix. The patch is a 10000 line nightmare. No really it's actually 10k. A lot of that is test code, but there are also significant changes to deep engine internals.

PHP did really really bad memory limit handling. Now it's only really bad.

16
UnfairUtan
lemmy.world
UnfairUtan@lemmy.world
Joined: 2023-07-07
#19 Posted:   Subject: Re: PHP: you get your burger Quote Reply

No, they chewed snots for years because there wasn't a trivial and straightforward fix and exploit looked too "theoretically possible". But some time ago(months? year?) some company showed them a working exploit, so they started to think how to actually fix the problem. All that time they kept all in secret so hackers wouldn't know. But the fix had leaked, letting hackers to figure out what was...

Thanks, makes sense!

1
UnfairUtan
lemmy.world
UnfairUtan@lemmy.world
Joined: 2023-07-07
#20 Posted: · edited   Subject: Re: PHP: you get your burger Quote Reply

It's not a quick or easy fix. The patch is a 10000 line nightmare. No really it's actually 10k. A lot of that is test code, but there are also significant changes to deep engine internals. PHP did really really bad memory limit handling. Now it's only really bad.

Wow scary fix, I'm guessing we're going to be seeing a few new patches really soon fixing bugs created by this latest version

3
Blue_Morpho
lemmy.world
Blue_Morpho@lemmy.world
Joined: 2023-11-14
#21 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Ublock blocks this for some reason EDIT turns out the reason is it appears to be infected with a botnet

That's weird. I did some digging and can't find its name, ip, or hosting company servrex.com on any block list. I checked HaGezi on github based on your post.

2
sem
piefed.blahaj.zone
sem@piefed.blahaj.zone
Joined: 2025-09-04
#22 Posted:   Subject: Re: PHP: you get your burger Quote Reply

That's weird. I did some digging and can't find its name, ip, or hosting company servrex.com on any block list. I checked HaGezi on github based on your post.

I used this https://github.com/hagezi/dns-blocklists#listlookup and searched https://motherfuckingwebsite.com

If you search the closed github issues, you'll see more details for the url

2
NickwithaC
lemmy.world

NickwithaC@lemmy.world
Joined: 2023-06-14
#23 Posted:   Subject: Re: PHP: you get your burger Quote Reply

How it should work for 99% of websites. https://motherfuckingwebsite.com/

CSS didn't do shit wrong:

http://bettermotherfuckingwebsite.com/

11
MidsizedSedan
lemmy.world
MidsizedSedan@lemmy.world
Joined: 2024-07-08
#24 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Dam, I guess I was a programmer at KFC, and I didn't even know it...

4
Evotech
lemmy.world
Evotech@lemmy.world
Joined: 2023-10-11
#25 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Step 5. you inject poison in your burger and send it back. Causing the cook to die and you take over as the owner of the restaurant

15
Blue_Morpho
lemmy.world
Blue_Morpho@lemmy.world
Joined: 2023-11-14
#26 Posted:   Subject: Re: PHP: you get your burger Quote Reply

I used this https://github.com/hagezi/dns-blocklists#listlookup and searched https://motherfuckingwebsite.com If you search the closed github issues, you'll see more details for the url

Which list? I searched the Multi Ultimate Full list and it wasn't there.

1
NoDignity
lemmy.world
NoDignity@lemmy.world
Joined: 2023-06-14
#27 Posted:   Subject: Re: PHP: you get your burger Quote Reply

holy fuck 70% of websites are running PHP? are they sure? Am I going to find a php binary in a node_modules directory

I kinda buy the 70% claim, mostly because lots of old CMS systems are built using PHP some of which are still extremely popular like wordpress.

3
Nocklusamigos
lemmy.world
liuther9@lemmy.world
Joined: 2025-09-15
#28 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Not in Librewolf, at least. Ublock and Noscript enabled. Site still shows.

Adguard blocks it. Adguard usually is more trustworthy

-1
ulterno
programming.dev
ulterno@programming.dev
Joined: 2024-11-12
#29 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Which list? I searched the Multi Ultimate Full list and it wasn't there.

https://github.com/hagezi/dns-blocklists/issues/11017

https://github.com/hagezi/dns-blocklists/issues/12026

3
Blue_Morpho
lemmy.world
Blue_Morpho@lemmy.world
Joined: 2023-11-14
#30 Posted: · edited   Subject: Re: PHP: you get your burger Quote Reply

https://github.com/hagezi/dns-blocklists/issues/11017 https://github.com/hagezi/dns-blocklists/issues/12026

Well that's even weirder. It is in a list labeled malicious/scammer/fishing.

It absolutely isn't any of those.

Someone else claimed it pulls resources from a botnet but if you view source, that isn't true.

5
ulterno
programming.dev
ulterno@programming.dev
Joined: 2024-11-12
#31 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Well that's even weirder. It is in a list labeled malicious/scammer/fishing. It absolutely isn't any of those. Someone else claimed it pulls resources from a botnet but if you view source, that isn't true.

Well, I didn't check its internals.

2
expletivedeleted
lemmy.zip
expletivedeleted@lemmy.zip
Joined: 2026-09-13
#32 Posted: · edited   Subject: Re: PHP: you get your burger Quote Reply

The cook should be represented as the database.

Back in the 80's, my brother "hacked" a pizza place because he knew how they wrote green olives and black olives on their ticket. He dated a girl who worked there for a stint.

I don't remember how it worked and he has since passed, but it was something with the order that he would list the toppings that would fuck up the cook, so the order always came out wrong and boom! Free pizza.

5
Mikrochip
feddit.org
Mikrochip@feddit.org
Joined: 2024-06-24
#33 Posted:   Subject: Re: PHP: you get your burger Quote Reply

CSS didn't do shit wrong: http://bettermotherfuckingwebsite.com/

Love this one. Only thing I don't get is why so many people can't stand high contrast. Or even go so far as to say white background hurts their eyes. Black on white is just fine, thank you very much. And if it is too harsh, then I suspect that actually either one's monitor is too bright, or - more likely - the environment they're in is too dim.

2
0xDREADBEEF
lemmy.dbzer0.com

dreadbeef@lemmy.dbzer0.com
Joined: 2024-12-18
#34 Posted:   Subject: Re: PHP: you get your burger Quote Reply

the person getting the burger actually has a user agent which fetches the burger for them. Its a food delivery app and the browser is doordash/uber eats etc. Instead of packets its human beings who read a screen and understand obligations.

1
IphtashuFitz
lemmy.world
IphtashuFitz@lemmy.world
Joined: 2023-06-23
#35 Posted:   Subject: Re: PHP: you get your burger Quote Reply

CSS didn't do shit wrong: http://bettermotherfuckingwebsite.com/

Can we get Samuel L. Jackson to read it for those with vision impairment?

3
Dry_Monk
lemmy.world
Dry_Monk@lemmy.world
Joined: 2023-07-03
#36 Posted:   Subject: Re: PHP: you get your burger Quote Reply

4

0
adarza
lemmy.ca
adarza@lemmy.ca
Joined: 2024-05-29
#37 Posted:   Subject: Re: PHP: you get your burger Quote Reply

I kinda buy the 70% claim, mostly because lots of old CMS systems are built using PHP some of which are still extremely popular like wordpress.

over half of that 70% is just wordpress.

5
sem
piefed.blahaj.zone
sem@piefed.blahaj.zone
Joined: 2025-09-04
#38 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Well that's even weirder. It is in a list labeled malicious/scammer/fishing. It absolutely isn't any of those. Someone else claimed it pulls resources from a botnet but if you view source, that isn't true.

Can ypu add to the github issue asking to review it?

1
Blue_Morpho
lemmy.world
Blue_Morpho@lemmy.world
Joined: 2023-11-14
#39 Posted:   Subject: Re: PHP: you get your burger Quote Reply

Can ypu add to the github issue asking to review it?

Looks like someone already did.

1
Post Reply Page 1