update with php headers and footers