I have the following 3 HTML files that construct the template of a page
header.html
main_page.html (different each time)
footer.html
I have a function DisplayTemplate() that parses these files, replaces the tags i need and prints the results.
The problem is that in header.html a have a banner_rotator which always gets me the same banner.
In main_page.html all the dynamic data is being replaced properly. However if i add something static like <h1>test</h1> or a new javascript it doesn't show it, no matter how many times i refresh it. It's not even in the html code. It seems like it parses an old file.
The DisplayTemplate() is included in a common file.
So to print page1.php i use:
DisplayTemplate(header $vars);
echo $page1; //this is for each page
DisplayTemplate(footer $vars);
The site works ok locally. The problem only occurs on a host (i've tried 3 so far).
I sent headers() and metatags for refreshing but don't seem to do anything.
I have this problem for almost 3 weeks and i posted again about this problem. This is where i got the suggestion for headers()
Any ideas please????
Thanks and sorry if i confused you.
John