Hi all, I'm looking for how to make PHP display its code, including the <? ?>, instead of processing it. This is for the purpose of making a PHP tutorial complete with the code printed on the page. Thank you!
Depending on your server setup, you may also be able to save your source as .phps and it will automatically highlight it for you.
Not sure but i guess your problem is just that your code snippets are not displayed in the HTML because you have .php pages that execute the code ? In this case, you just need to encode the "<" and ">" braces - replace all "<" within your code with "<" and all ">" with ">"