I just started learning PHP and I tried looking for answers, but couldn't find any.
When i type in
<?php echo '<p>Order processed.
embedded into HTML, it works fine, but when I put
<?php echo '<p>Order processed.</p>' ?>
it always has the closing tag '?> shown in the browser. Is there something I missed?
When I run it through localhost/file_name in my browser, it works fine, but I would prefer just opening the php file from my desktop. Also, when I write:
<?php echo "<p>Order processed at "; echo date('H:i, jS F Y'); echo "</p>"; ?>
it seemingly ignores all the semicolons and treats echo and everything else as HTML.
What can I do to fix it?