Is PHP installed and running

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
fadster
Forum Newbie
Posts: 2
Joined: Wed Jul 06, 2016 4:30 am

Is PHP installed and running

Post 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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Is PHP installed and running

Post 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?
fadster
Forum Newbie
Posts: 2
Joined: Wed Jul 06, 2016 4:30 am

Re: Is PHP installed and running

Post by fadster »

Ah, that works!

Thx.
Post Reply