I need to display the contents of my program at the end of the webpage for an assignment, but it just keeps executing the PHP instead of displaying it. I was trying to use <xmp></xmp>
, but I guess that only works for HTML code. Is there any way for me to display PHP code in a webpage without having to do escapes across the entire program? Surely that's not the only way.
Edit: I figured it out. Just needed to replace the <?php
with <?php
. Thanks for the classic snarky responses, though.