add php file, header and footer
make webdir configurable