Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 10:35:53 AM

Pages: [1]   Go Down
  Print  
Author Topic: Displying HTML,PHP,ASP etc  (Read 338 times)
gruckiii
Spaceship Navigator
*****
Offline Offline

Posts: 93



WWW
« on: September 17, 2002, 01:29:00 AM »

Anyone know any easy way to display HTML,PHP or ASP code without haveing the browser try and interpret it? There has to be something real simple that I am not thinking of.
Logged
Brian
Jedi
*****
Offline Offline

Posts: 874


WWW
« Reply #1 on: September 17, 2002, 04:17:00 PM »

well, there are certain codes to display symbols like brackets and such without the browser trying to convert them to HTML. one easy trick is to use an editor such as Dreamweaver, and paste it into the document as text, and it places all the symbols for you.

"&lt;" gives you a "<".  "&gt;" gives you a ">".

when i find the rest of them, i'll post them

-Brian
 
 [ September 17, 2002, 12:19 PM: Message edited by: Brian ]
Logged

gruckiii
Spaceship Navigator
*****
Offline Offline

Posts: 93



WWW
« Reply #2 on: September 17, 2002, 10:36:00 AM »

well I want it done kinda autmaticaly so I will have to write a script that reads the file and replaces my brackets with "& lt" "& gt". It shouldn't be too hard. Thanks

-now how did you escape those codes so they were not turned into the symbols? heh
so much to learn still  "[dance]"
 
 [ September 17, 2002, 06:39 PM: Message edited by: gruckiii ]
Logged
Brian
Jedi
*****
Offline Offline

Posts: 874


WWW
« Reply #3 on: September 17, 2002, 11:33:00 AM »

"&amp;" is the code for &  "[Wink]"
Logged

gruckiii
Spaceship Navigator
*****
Offline Offline

Posts: 93



WWW
« Reply #4 on: September 17, 2002, 11:43:00 AM »

oh ok thanks

*I moved my question that was here to the security thread   "[licker]"
 
 [ September 18, 2002, 08:27 AM: Message edited by: gruckiii ]
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: