52
neolium
9y

The moment when u find such nice "networklatency-functions" 😂

Comments
  • 2
    What else you can do to simulate latency?
  • 0
    What'd you expect, it's PHP.
  • 9
    Am I the only one who is put off by the fact that they actually just wait half a second?
  • 6
    @harrizsb
    for($i = 0; $i < 500000; $i++)
    {
    $x = $i;
    unset($x);
    }
  • 3
    I mean, it's actually not that bad of an idea. But passwords should be hashed, not stored in plaintext.
  • 3
    @vinc98 yeah I agree that this is shit but it's a fast way to protect against brute Force
  • 2
    And the error message "must be foobar" 🤣
  • 1
    Am I the only one who gets heartache from the if-else which does not have curly branches?
  • 2
    // wait 500ms to make users angry
Add Comment