Barclays interview question

How integrate R script to a web module via PHP ? (Project Based Question)