I'm looking to create a 'wrapper' function set where I call a function before code, then again after code in order to have it to isolate and perform actions on that contained code.
Specifically, I am creating a block caching tool for a custom content management engine that will allow template developers to specify certain areas of code that can and cannot be server side cached.
For example:
<?php
echo "test1";
echo "test2";
dontCacheStart();
echo "test3";
echo "test4";
dontCacheEnd();
echo "test5";
?>
Would generate a file on the server ...
test1test2<?php
echo "test3";
echo "test4";
?>test5
Which would then be accessed on subsequent page requests for faster processing (until it expires or is deleted).
I have all the other functionality operational, but do not know how to create a wrapper tag.
Thanks in advance for any advice!
goto's (the horror!)