Hi
I have simple website. The main structure is based on header, main content and footer as below:
Because I am going to use a couple of subscripts which are supposed to have the same header and footer I thought include woudl work perfect here. Unfortunately, the script is not run. It says include is not recognized text to parse. Is it something I am doing wrong or include simply does not exist? Is there any other way to make it work?
Regards.
I have simple website. The main structure is based on header, main content and footer as below:
Code:
<?php
include($_SERVER['DOCUMENT_ROOT'.'/header.php');
?>
<p>something here which contains main content</p>
<?php
include($_SERVER['DOCUMENT_ROOT'.'/footer.php');
?>
Regards.