• (cs) in reply to kmactane
    kmactane:
    Okay, I'll bite: What the heck is WTF-y about avocados? Is there something I don't know about them? (Would I figure out the WTF if I just looked at the "avocado" entry on Wikipedia?)

    Too delicious.

  • mctaz (unregistered) in reply to Maciej

    I like the concept that the file is so big it has to be read incrementally.

    And then it's urlencoded an slapped into a URL. How long is the url? 100MB?

    Good stuff.

  • (cs) in reply to d3matt
    d3matt:
    manarth:
    Why blame the developer? It's the tester who creates bugs.
    As a software tester, I resemble that remark!
    The "I resemble that remark" line was funny the first few times. It has now been done tens of thousands of times. Please use some different lines, such as the following:
    • It's not a bug! The program is working as coded.
    • I'm going to start my own software company without any testers or testing. Then we won't have any bugs.
    • Why blame the tester? It's PHP that creates bugs.

    You can do it too!

  • Dennis (unregistered)

    Bugs are Schroedinger's Cats. Don't open the box.

    In other words always[1] blame the user.

    [1] Always, always, always...

  • Some random coward (unregistered)

    Reading all these comments is the equivalent of reading an article.

  • (cs) in reply to akatherder
    akatherder:
    exit; //optimized to save memory since files don't upload anyways.

    foreach (file($filename) as $line) { $contents.= $line; } $contents=urlencode($contents);

    unset($line); unset($contents); unset($_FILES);

    Better yet!

    foreach (file($filename) as $line) { $contents.= $line; } $contents=urlencode($contents);

    echo "Too Much Data Error, Try freeing up space on your system. Suggest low-level format!";

    unset($line); unset($contents); unset($_FILES);

  • Synonymous Awkward (unregistered) in reply to FredSaw
    FredSaw:
    Synonymous Awkward:
    Oh, good, because you lot can be trusted to be civil and polite to each other even when you're not discussing contentious topics.
    Interesting, how even as you're categorizing the entire readership of WTF using sarcasm to attribute social crudity and viciousness, you exclude yourself.
    You could also have pointed out that applying different standards to others than to myself is another fine local tradition I'm upholding.
  • (cs) in reply to kmactane
    kmactane:
    poochner:
    FredSaw:
    poochner:
    Oh, sure! Blame the old guy! I mean, it's not like he's never made a WTF (the platypus?! the avacado?!)
    Back off. My homemade guacamole is the finest in the land, completely without equal.
    I like guacamole, too. But the avacado is still a WTF.

    Okay, I'll bite: What the heck is WTF-y about avocados? Is there something I don't know about them? (Would I figure out the WTF if I just looked at the "avocado" entry on Wikipedia?)

    It's a berry that is high in fat and cholesterol, and low in simple and complex carbohydrates. Fruit are supposed to provide nutrition for seedlings, but fat is pretty much nutritionally vacuous to plants.

  • (cs) in reply to Synonymous Awkward
    Synonymous Awkward:
    You could also have pointed out that applying different standards to others than to myself is another fine local tradition I'm upholding.
    I did.
  • (cs) in reply to poopdeville
    poopdeville:
    kmactane:
    Okay, I'll bite: What the heck is WTF-y about avocados? <snip>
    It's a berry... <snip>
    *cough*
  • Zygo (unregistered) in reply to Michael.H
    Michael.H:
    the problem always lies between the keyboard and chair guys.

    Only if the problem has bad posture, or if the problem is very tired that day. I generally find problems sitting most of the time. Second in frequency is the incidence of problems chatting around the coffee machine or problems in the washrooms.

  • (cs) in reply to poopdeville
    poopdeville:
    It's a berry that is high in fat and cholesterol, and low in simple and complex carbohydrates. Fruit are supposed to provide nutrition for seedlings, but fat is pretty much nutritionally vacuous to plants.

    The fruit is also supposed to attract the attention of animals likely to disperse the seed. If I recall, the theory is that it evolved along with mammalian megafauna that has since died out?

  • Synonymous Awkward (unregistered) in reply to FredSaw
    FredSaw:
    Synonymous Awkward:
    You could also have pointed out that applying different standards to others than to myself is another fine local tradition I'm upholding.
    I did.
    Also, not reading other people's posts.
  • (cs)

    The real mistake is that by mentioning PHP on your résumé you associate yourself with people who have no business programming but somehow know PHP.

  • Neuro (unregistered) in reply to -

    Or just set up a timed dowload program to grap files every 10 min or set up an asynconous queue to handle the transfer

  • Simon (unregistered)
    uploading a file involved posting the file to one page, programmatically urlencoding the file, and then posting to a different page

    I guess that's the PHP way for separation of concerns?

  • Zombie_Hunter (unregistered) in reply to poopdeville
    poopdeville:
    <snippage> It's a berry that is high in fat and cholesterol, <more snippage>
    Avacados ARE NOT high in cholestrol!
  • Hognoxious (unregistered) in reply to Maciej
    Maciej:
    The fruit is also supposed to attract the attention of animals likely to disperse the seed. If I recall, the theory is that it evolved along with mammalian megafauna that has since died out?
    I wouldn't want to be in front of an animal that can gulp down an avocado leaving the stone intact. I certainly wouldn't want to be behind it when it does a poopoo.
  • zzo38 (unregistered)

    I don't use file_get_contents (I have PHP 4.x), I can just make it implode. And it nearly works anyways. Really, it does.

Leave a comment on “unset() It, and Forget It!”

Log In or post as a guest

Replying to comment #:

« Return to Article