Static webpage generator in php