Ok, basically what I am trying to do is (in PHP) read a config file, and then echo it out from a variable. What I am using is;
As you can see I already tried to escape the $'s but backslashing them before echoing, but that didn't help. Is there actually a way to read a file, and then echo it without the code being processed?
Thanks
Andy
Code:
function edit_settings() {
$input = file("settings.inc.php");
foreach ($input as $line) {
$return = ereg_replace("\$", "\\$", $line);
echo $return;;
} // end foreach
}
As you can see I already tried to escape the $'s but backslashing them before echoing, but that didn't help. Is there actually a way to read a file, and then echo it without the code being processed?
Thanks
Andy