16

Opened a legacy PHP file from 2008.

No functions.
2,000+ lines.
Inline SQL.
HTML inside echo statements.
A single if (true) wrapping the entire thing like some cursed gift box.

At the top:
// Do not modify. Works perfectly.

At the bottom:
It writes to two databases. Only one exists.

Somewhere in the middle:
It sends an email…
to the client’s ex-wife.

I closed the file.
Rebooted my laptop.
Took a walk.
Still not okay.

Comments
  • 4
    The email to the ex wife is hitting a fail level few have reached…..
  • 6
    The newbies on this platform are killing it 😂 Amazing rant 😁
  • 1
    I bet the email works perfectly as well. What would happen if you modify that, would they fire you?
  • 3
    writing crap and then saying //Do not modify

    just nuts
  • 2
    I wish I could see this piece of art
Add Comment