RE: [PHP] Display HTML/PHP code on a web page

2003-07-17 Thread Jay Blanchard
[snip] i'm not sure but i think a tag in html is available which name and [/snip] You can also put your code between tags (pre-formatted text) I do this to display pre formatted text in text area boxes title); // article title ?> By: name); //article author ?> Published: publish); //art

Re: [PHP] Display HTML/PHP code on a web page

2003-07-17 Thread Abdolhamid Joukar
i'm not sure but i think a tag in html is available which name and you should put your codes between this couple ... regards Abdolhamid Joukar > - Original Message - > From: "Jason Paschal" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, July 17, 2003 9:29 AM > Subje

Re: [PHP] Display HTML/PHP code on a web page

2003-07-17 Thread Ray Hunter
> I've googled for it, but nothing came up. How do I display code on a page > without it being executed? If you want to show php source then you can use show_source function or highlight_file function. -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Display HTML/PHP code on a web page

2003-07-16 Thread Curt Zirzow
Jason Paschal <[EMAIL PROTECTED]> wrote: > I've googled for it, but nothing came up. How do I display code on a page > without it being executed? This has to do with how your webserver is set up, because it see's that its a php file it runs it thruough php. > i want the page to display HTML cod

Re: [PHP] Display HTML/PHP code on a web page

2003-07-16 Thread Justin French
Don't really understand the problem but htmlspecialchars() will convert: Justin & Co into Justin & Co ... which will solve half your problem... not sure what to do with php code... perhaps the same thing... Or, you may want to look at show_source() and highlight_file() as well... Jus

Re: [PHP] Display HTML/PHP code on a web page

2003-07-16 Thread Chris Shiflett
--- Jason Paschal <[EMAIL PROTECTED]> wrote: > I've googled for it, but nothing came up. How do I display code > on a page without it being executed? Try htmlentities() Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing