What are some common mistakes beginners make when trying to run their first PHP script?

One common mistake beginners make when trying to run their first PHP script is not using the correct file extension. PHP files should have a ".php" extension to be executed by the server. Another mistake is not enclosing PHP code within the correct opening and closing tags "<?php ?>".

&lt;?php
// Correct way to start a PHP script
echo &quot;Hello, World!&quot;;
?&gt;