Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Member nepharo's Avatar
    Join Date
    Jun 2003
    Posts
    73
    Member #
    1729
    I forgot how to do this
    how do you display php tags in the browser, without executing them. Like this

    <?php include("foo.php") ?>
    I cannot self terminate, you must lower me into the fire.

  2.  

  3. #2
    Member Black Vivi's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    75
    Member #
    1072
    if ur using php, then this:
    PHP Code:
    echo(htmlspecialchars("<? php include(\"foo.php\"); ?>"));
    if, its not inside php tags, then this:
    Code:
    &lt;?php include(&quot;foo.php&quot;); ?>
    Download Firebird now!

  4. #3
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    If it's not in a PHP page at all (HTML page), you can use the XMP tag:

    Code:
    <xmp><?php include("foo.php"); ?></xmp>

  5. #4
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    What happens if you want to do:
    Code:
    <xmp>
    You can use the tag like this:
    <xmp>
    cool!
    </xmp>
    </xmp>
    (BTW, I kept typing XML )
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:43 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com