Question: I am new to PHP, just downloaded it, and wrote a ["Hello, World!"](https://en.wikipedia.org/wiki/%22Hello,_World!%22_program) program:

```
<html>
    <body>

    <?php
        $fileName = "test.jpg";
        $txt = "Hello, World!";
        echo $txt;
    ?>

    </body>
</html>

```

But it doesn't work. I named the file `test.php` and opened it with Firefox and nothing was displayed.

Answer: 
You will need to install a webserver on your machine to make it work. Take a look at [XAMPP](http://en.wikipedia.org/wiki/XAMPP) at <http://www.apachefriends.org/en/index.html>.
You need a webserver to view the PHP program like [XAMPP](http://en.wikipedia.org/wiki/XAMPP) or [WAMP](http://en.wikipedia.org/wiki/WAMP). If you are using XAMPP, put your file in htdocs and then access your file from any browser like Google Chorme, Firefox or Internet Explorer by typing `localhost/foldername/yourfile.php`, in your case `localhost/test.php`.