Here is my html with a php script:
Bob\'s Auto Parts
I had the same problem when I figured out my mistake:
Instead of correct http://localhost/test.php I just double clicked on the file file:///C:/Users/.../htdocs/test.php.
http://localhost/test.php
file:///C:/Users/.../htdocs/test.php