PHP echo does not work?

S B

New member
I could have sworn this exact same code worked on my computer before, but now it doesn't.

I have a file called test.php with the following code:
---------------------------------------------------
<?php
$myString = "Hello!";
echo $myString;
?>
---------------------------------------------------

When I open it in firefox, I get nothing. Just a blank screen.

Can anyone figure out why?

Thanks.
 
You must upload the php file to a web host that has PHP configured, or download and install something like WAMP or XAMPP to run PHP locally.

http://www.apachefriends.org/en/xampp.html
http://www.wampserver.com/en/
 
Back
Top