Page 1 of 1

Is PHP installed and running

Posted: Wed Jul 06, 2016 4:41 am
by fadster
Greetings, I am new to the world of web development so I installed wamp on my laptop for local development. It seems to be working fine but when I open a basic html file created with notepad and has:

<?php echo '<p>Hello World</p>'; ?>

I get the output as (literally)

hello there
"; ?>

Also, other php calls and scripts are not working at all. What am I missing?

Thx.

Re: Is PHP installed and running

Posted: Wed Jul 06, 2016 4:48 am
by requinix
Make sure your file is named *.php and that you the address bar in your browser starts with http:// (and not file://).

Are those both the case?

Re: Is PHP installed and running

Posted: Thu Jul 07, 2016 3:32 am
by fadster
Ah, that works!

Thx.