building some php stuff for the site