This question already has an answer here:
I am trying to learn basics of php.So I tried following example as in http://www.w3schools.com/
<!DOCTYPE html>
<html>
<body>
<h1>A Header</h1>
<?php
echo "My first PHP script!";
?>
</body>
</html>
This code was working two days ago. But now PHP part doesn't work.I have read this thread,but It is not that problem. Please help. Thank you.
</div>
I recommend you start learning PHP using this website http://www.developphp.com/list_php.php#Getting_Started_with_PHP_Programming it has everything you need to get you started, tutorials are nice and easy to follow :)
Check the Installation section and then maybe have a look at this one http://www.developphp.com/view_lesson.php?v=194 to solve your problem.
Hope it helps!- Good Luck!
Make sure that your web-server can execute php-scripts. Go through this: http://php.net/manual/en/install.php