basic question:

how does one comment xml or html tags so that they will be displayed in the browser, and not parsed, within php code?

thanks for your time

knelson

    If in between <html> tags and before <?php> :

    <html>
    <! --- <your><tags> ---!>
    </html>
    

    If embeded in <?php> tags:

    <?php
    print ( "<!-- <your><tags> --!>");
    ?>
    

    Good Luck!

    Take Care
    ~ThoughtRiot

      but the tags still don't display in the browser--they're being read, apparently.

      i'm trying to output a page to the viewer with xml tags so that they can copy and paste them, like so...

      <xmltag>$variable</xmltag>

      cheers

      knelson

        using the coded characters-

        <?php
        print "&lt;your&gt; &lt;tags&gt;";
        ?>

        but I was just wondering if there was another way..thanks.

          Write a Reply...