Hiya,
I'm just learning PHP and in the course of coding I was trying to write out a break tag in one of my scripts. The problem is that it seems PHP is interpereting the '<' as the end of the PHP block, which ends up printing all my code and ignoring the script. A very simple example is this:
<body>
<?php
print "<br>";
?>
</body>
Changing the print statement to this:
print "<" . "br" . ">";
OR
print "<" . "br" . ">";
doesnt do anything to help. Changing it to:
print "<" . "br" . ">";
makes the browser interperate the whole thing as text. If I make that file and name it .php it works fine, but naming it .html is when it screws it up. I thought that I should be able to just insert php into html files and it would work fine. I have seen code that outputs html, I was thinking that was what PHP did by default, so my assumption is that something in my config file is bad.
thanks for any help
robb