SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Sep 2007
    Posts
    971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Disable PHP Output

    Hi I am just after an idea how to do this.

    I have a page which displays all information from a MySQL database. If one of the fields contains php how would I stop it from executing and display as text only? I would like html to display as html but just not php

    Thanks.
    Animated Chatrooms - www.121chatrooms.net

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2007
    Posts
    51
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    It won't execute until you eval(uate) it. You may want to replace < and > with &lt; and &gt; respectively, so it's not treated as HTML code.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •