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: 
If you have [command-line PHP](http://us3.php.net/manual/en/features.commandline.php) installed, you should be able to enter:

```
php test.php

```

to invoke PHP to run your program and display the output on the console.
Do you have a local server installed? PHP is a server-side scripting language, so it cannot just be run like a normal HTML file.

Try watching the first few videos on the [New Boston's PHP series](http://thenewboston.org/list.php?cat=11). They show you simply how to download, install and use a local server to run your PHP on.