wamp - Why is my simple piece of php not working? -


i trying learn php. installed wamp run php code. started tutorial php php code not working. browser sees code html comment.
file named index.php

<?php   echo "my first php script!"; ?> 

i tried restart wamp doesn't work. can tell me stupid mistake made?

edit one:

element inspect enter image description here

please check statusbar on pc. make sure wampserver logo green, , make sure have saved file in www folder within wamp folder. code above looks fine! if have file within seperate folder in www sure navigate properly: input "localhost/nameofyourfolder" without quotes address bar!


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -