I don't know Java and don't profess to. Plus I'm a hobbyist who's still learning (always learning!) but even I can see that PHP is going to be easier to script...
© 2015, O’Reilly Media, Inc.
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.