Jump to content


Photo

Putting PHP on a page


  • Please log in to reply
2 replies to this topic

#1 albinoazn

albinoazn
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 01 April 2006 - 10:07 PM

how can i put php on a web page without the browser executing that php? I tried wrapping it in <textarea> but that didn't work. Sorry if this is in the wrong place.

-Thank you,
albinoAZN

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 01 April 2006 - 10:10 PM

replace the < and > tags with &lg; and &gt;
follow me on twitter @PHPsycho

#3 toplay

toplay
  • Staff Alumni
  • Advanced Member
  • 973 posts

Posted 01 April 2006 - 10:12 PM

Some servers are designated to where you can use the phps extension (i.e. filename.phps). Or try one of these functions:

[a href=\"http://us2.php.net/manual/en/function.highlight-string.php\" target=\"_blank\"]http://us2.php.net/manual/en/function.highlight-string.php[/a]

[a href=\"http://us2.php.net/manual/en/function.highlight-file.php\" target=\"_blank\"]http://us2.php.net/manual/en/function.highlight-file.php[/a]






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users