updated basic php structure