Alright, so this problem has to do with the fwrite function as well as other f functions related to it.
There is a mysql database with 3 rows: template_header, content, template footer.
Stored in template_header is just that, all of the header code to a php page.
Stored in content is the body of the page.
Stored in template_footer is the footer code to a php page.
I have an fwrite script that creates a page which has the php select code to grab all 3 different parts of the page. This way i can dynamically change the content/header/footer.
BUT! There is one huge problem.
When the php select code selects everything off of the database, it creates a page which resembles a .html page in that it shows the <?php ?> stuff when you view the source.
Hopefully you understand what i am saying here, it is a bit complicated. Let me know if you need some code to help illustrate my point.
Any ideas?