Put all the PHP stuff together