News for hackers. Stuff that matters.
Re:Show HN: Replace CAPTCHA with Proof-of-Work by hippich on Wednesday June 25, 2014 @05:36PM (#7946878)
It was quick and dirty example on how to use it. Frameworks usually expose builder function where you can pass query as and array/hash and that should be used. Do you have better example which will be clear about what happening and use pure PHP?
Re:Show HN: Replace CAPTCHA with Proof-of-Work by ars on Wednesday June 25, 2014 @07:18PM (#7947308)
Add:

    if(strspn($_REQUEST['hashcashid'], 'abcdef0123456789-') !=
       strlen($_REQUEST['hashcashid'])
         die('Invalid character.');