My question being, how would I do this?
Example:
Code: Select all
<p>
This is a test document.
<?
for ($i=0; $i<10; $i++) {
echo function_one($i);
?>
</p>echo $myContent doesn't actually evaluate the code, eval("\$myContent=\"$myContent\";"); doesn't do the functions.
include() is what I need, but this is a website, and writing to a file, even a temporary file, seems like a waste of time and just asking for conflicts.
Any suggestions would be very much appreciated.