Try changing the persmissions for the PHP file to make it executable by PHP (755 or 775 should work).
I just updated the PHP file to reflect the current recount_rebuild tool and tested it on my test forum and it runs without any errors.
I just updated the PHP file to reflect the current recount_rebuild tool and tested it on my test forum and it runs without any errors.