PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
$header = "Headline";
$paragraph = "content, content, content";
// Here, somehow include the template and let php evaluate the variables
?>
How can I make this work? Feels like there should be a trivial solution.
but why go through all the trouble,
added complexity,
consuming extra resources,
slowing the script down,
just to have something that is LESS function?
to me it seems like reinventing the wheel, w/ little benefit and lots of drawbacks.
Mostly cause the templates will be edited by a very limited htmlarea-like editor and I wanna keep them as simple as possible.
Perhaps I'll go with some kind of string replace anyway, I'm not sure yet. Speed is not an issue since this script simply outputs an html file when the content changes, instead of being run every time someone browses to it.
Well, thanks for your input. I'll be back with more stupid questions soon.