embed PHP code?

Discussion in 'PHP' started by RyanDoubleyou, Jun 30, 2008.

  1. #1
    Can somebody help me on how to be able to embed php and html code
    like this is mean
    Code (markup):
    But on my personal website. I was writing a tutorial with php and html, but I dont want the HTML to be used, or the PHP to be executed. Any help is appreciated.
    Thanks, Ryan.
     
    RyanDoubleyou, Jun 30, 2008 IP
  2. AliasXNeo

    AliasXNeo Banned

    Messages:
    151
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    For html start all tags you dont want to be interpreted with < and end them with >.

    Example:

    How to bold a statement: <b>Some text</b>
    Code (markup):
    You may want to write it all out and then come behind with find/replace to fix it up. You can also automate it with Javascript but that's a bit tougher.

    For PHP simple don't include the <?php and ?> tags.
     
    AliasXNeo, Jun 30, 2008 IP
  3. RyanDoubleyou

    RyanDoubleyou Peon

    Messages:
    86
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    okay, thanks for the quick reply! Ill try this out.
     
    RyanDoubleyou, Jun 30, 2008 IP