How would one go about showing PHP code on user end. Sort of like w3School does?
Having lets say a grey area div, and then showing the code in there without activati
You can use this template........
######################################################################
echo "
Source Code of ".basename((string)__FILE__) . "
";
show_source(__FILE__);
echo "
";
echo "Output of ".basename((string)__FILE__) . "
";
#######################################################################
It will show the source code and output following.