One thing I am doing is loading a standard .txt file into PHP, replacing various parts using str_replace(), and then trying to get the file (which is now stored in a variable) into the page.
Getting the file into the page is simple if I use echo() but I have <?php ?> sections in the actual file (which is now stored in a variable remember) which I want to execute as normal. At the moment everything between the PHP tags is being displayed on the page as PHP code and isn't being executed.
Any ideas on how I can remedy this?
Thanks.