I have a newbie question.
I need an alternative to this:
$variable = 'Sometext with some other text <?php include 'somescript.php'?> some more text';
where $variable will be echoed into a webpage as part of the page content.
I can echo text into the page all day, but not an include.
I'm guessing that the echo command doesn't process the variable, but I don't know what command to use to process the include on the way to, or after its in, the page.
Would it be fwrite? If so, how can I get it to write to the file the $variable is in?
Thanks for all your help.