The header and footer files can usually be edited within the template manager of the admin. panel. I'm not too familiar with phpBB so I'm unsure where it is exactly.
I found this via Google, I'm not sure if it's what you need or not:
http://phpbb.wikia.com/wiki/Function_reference_guide