How can I write PHP code to be displayed in html? I know there are <html> and <p> tags but I want to make an example of PHP code in HTML. In other words, when placing the PHP code, <?php echo 'texto'; ?>
it is not interpreted by the CGI.
How can I write PHP code to be displayed in html? I know there are <html> and <p> tags but I want to make an example of PHP code in HTML. In other words, when placing the PHP code, <?php echo 'texto'; ?>
it is not interpreted by the CGI.
replace
<
by<
and
>
by>
as alvaro says, it
<pre></pre>
also works