0

Hello,

I have just a regular .html page. I want to take my PHP source code from one of my PHP scripts and display that to the viewer so they can see my code on the HTML page, as if it was just regular content on a page.

When I copy/paste the PHP code into a <p></p> it doesn't display it properly. Does anyone know how I could do this? Thank you.

Andrew

3
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by prateek shri
0

You have to encode the brackets < >, otherwise they're interpreted as HTML tags and wont display to the browser.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.