2
Are these pages static?
I.e. are you going to be able to create them and leave them or are you going to have to keep editing the page?
If they are static in that you won't need to edit them regularly you can try the following:
<?php
include("/mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
[b]THE REST OF YOUR CODE HERE[/b]
include(XOOPS_ROOT_PATH."/footer.php");
?>
This calls the header, footer and any other information from the mainfile i.e. user info, permissions etc
I use this code to wrap HTML pages, but I see no reason why it would not wrap PHP pages.
Example with HTML:
<?php
include("/mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>
<HTML>
[b]THE REST OF YOUR CODE HERE[/b]
</HTML>
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>
Dave