Create goal.php

The nearest PHP solution. Needs, syntaxically, to factorize on each call, but it works.