Here is my html with a php script:
Bob\'s Auto Parts
Check if you have installed more than 2 versions of PHP. The server may get confused sometime regarding this. First uninstall the php versions and reinstall only one PHP version.
Make sure the extension is .php and check echo tags on phpmanual. php.net/manual/en/function.echo.php
When you try to include html tags inside echo function, you need to insert between "" or '' and use . between elements.
Any of these (or more) could be your answer why it is not working
.php
?http://localhost/myfile.php