simple PHP file which i created is not being executed ?

  • Thread starter Thread starter hellguard
  • Start date Start date
H

hellguard

Guest
I Created a simple php file..

<html>
<body>
<?php
echo "hello world";
?>
</body>
</html>

And saved it with the extension .php but when i double click the file ,it is opening up in text editor.and then i tried ti open in mozilla firefox , it shows the download window and asked me where to save the file.I tried to give different extensions such as .phtml ,but still no way. When i run it as plain HTML , the script is not being executed.What can i do ? .Is there anything to be added in the file ? or there is something more to be installed ?

note : I've php installed already :)
 
Back
Top