Output code source, then run it.
Posted: Wed Dec 20, 2006 9:41 pm
Ok, say I have this in a file:
I'd like the out put of the file to be...
In other words, show the code first (or second, whatever), then run it.
The only way I can think to do this is to add a .htaccess redirection to another file that would read the given file as text, etc etc.
There another way to do this easily?
I plan on using this for teaching purposes, if you're curious.
Code: Select all
<?php
echo 'blah';
?>Code: Select all
<?php
echo 'blah';
?>
---------
blahThe only way I can think to do this is to add a .htaccess redirection to another file that would read the given file as text, etc etc.
There another way to do this easily?
I plan on using this for teaching purposes, if you're curious.