75
johnDoe
3y

FUCK YOU PHP!!!! FUCKING HELL JUST FUCK THE HELL OFF YOU PIECE OF SHIT.
8 GOD FORSAKEN HOURS SPENT TRYING TO ZIP SOME SHITTY FUCKING FILES IN A FOLDER ON MY WEB SERVER TO HAVE THEM DOWNLOADED TO MY CLIENT COMPUTER.... 8 HOURS UNABLE TO OPEN THE DAMN FILE AND THE ISSUE WAS "echo" & "print_r()" STATEMENTS GETTING TRAPPED IN MY ZIPARCHIVE BUFFER MAKING THE ZIP FILE A GIANT PILE OF UNREADABLE SHIT.
HOW IN GODS NAME WERE THOSE FUCKERS EVEN BEING ADDED TO THE ZIP FILE.

Fucking hell. Time to sleep.

Comments
  • 1
    And another 2 ish hours implementing it on my server. Nice
  • 4
    I suggest xdebug and any php debugger client you can find. It helps to see the workflow of the code. No die, no var_dump.

    If echoing data influences the output, then the zip library makes use of the output buffer (Look for ob_start). I did not expect it working this way.
  • 0
    Probably should have looked into that... I thought it was the header() calls that was fucking this up and never would have thought it to be print and echo statements.
    Oh well it's done somehow
  • 10
    An actual rant!
    How refreshing 💙

    Have a ++
  • 0
    /throws some ++'s your way
  • 3
    Your problem is you are using PHP. In case you didn't notice it's 2017 use Node
  • 1
    @gifco I didn't choose it. I'm working on a group project where I have been assigned the front end development and some others are doing the backend. I was just giving em a hand, which ended up being an absolute pain of a task.
  • 0
    @Artemix is a new version of PHP releasing soon?
Add Comment