When you view a PHP page, you'll only see the HTML, not the PHP scripts.
You can mix HTML with PHP (but you still need the file extension to be .php).
echo "this is the PHP script inside the HTML part";
$date = date("M/d/Y");
Now, we're out of PHP and back to regular HTML<br>
To display PHP variables outside of PHP, you do it like this:<br>
The Date is <?=$date?><br><br>
Notice how the PHP variable is between <? and ?>