Hi,
I currently have some PHP scripts that generate html pages. Howeber, I would like the output to display html code WITHIN the brower window rather than have it generate html that displays the laid-up results within the browser window.
For example, if myscript.php generates the code:
<head>
<title>Reviews</title>
</head>
<body>
<H1>Reviews<//H1>
<P>Foo Bar
</body>
then it will display:
REVIEWS
Foo Bar
However, I want a page that will actually display:
<head>
<title>Reviews</title>
</head>
<body>
<H1>Reviews<//H1>
<P>Foo Bar
</body>
in the browser window.
Does anyone know of a simple script (shtml, php or perl) or process that can do this simply - so I can keep te existing PHP scripts and just run, say, shtml scripts that process the original PHP script? Or will I have to totally rewrite my PHP script to output 'escaped' tags?
The former would be better as I could then use the original script to output 'properly' and to also generate the html code for inspection.
Cheers,
Steve