Adding a PHP version of adjplaces.pl.