You have a theme. In your theme you have templates, like header and footer.
Now, you wish to implement these headers and footers into a external PHP page, say a photo gallery.
In other words, is there a way to insert WP templates (which have been already parsed by WP) into a PHP document?
Remeber, the templates contain WP-specific tags. These need to be parsed first.