From reading your: "I want seperate text files for the different text sections on the site."
Have you considered using a separate php file "setting.php" and inside making a multidimensional array with all the things you need?
<?php
$settings = array(
'header_text' => array(
'text' => 'This is my header text and it containts a link <a href="website-url.com">click here</a>',
'color' => '#000000',
'font-size' => '12px'
),
'footer_text' => array(
'text' => 'Copyright © <a href="/tncs.php">Terms and Conditions</a>',
'color' => '#000000',
'font-size' => '12px'
),
);
?>
and if you need to go a step deeper and do it PER page:
<?php
$settings = array(
'index.php' => array(
'header_text' => array(
'text' => 'This is my header text and it containts a link <a href="website-url.com">click here</a>',
'color' => '#000000',
'font-size' => '12px'
),
'footer_text' => array(
'text' => 'Copyright © <a href="/tncs.php">Terms and Conditions</a>',
'color' => '#000000',
'font-size' => '12px'
)
),
'about.php' => array(
'header_text' => array(
'text' => 'This is my header text and it\'s only for the about page and it containts a link <a href="website-url.com">click here</a>',
'color' => '#000000',
'font-size' => '12px'
),
'footer_text' => array(
'text' => 'Copyright © <a href="/tncs.php">Terms and Conditions</a> and go to the main index page',
'color' => '#000000',
'font-size' => '12px'
)
),
);
?>
you can then include this file in your main script
include('settings.php');
and then call upon the array and such, all you do it edit the php file, and any changes would update.
This way you can manually edit any details you want!
Example:
<?php include('settings.php'); $curr_page = basename($_SERVER['PHP_SELF']); ?>
<div style="color: <?php echo $settings['header_text']['color']?>"><?php echo $settings[$curr_page]['header_text']['text']?></div>
<div style="color: <?php echo $settings[$curr_page]['header_text']['color']?>"><?php echo $settings[$curr_page]['header_text']['text']?></div>