converted to php

included header and footer and renamed all files to .php