Why not learn in a web environment if your goal is to build a website? Just create the following file: <?php phpinfo(); ?> save it, upload it and view it. If you see the php details you have the system set up as you need it and can just start writing php-driven web pages (the file you are using now is one!). If you really want to run that on the command line, you will need the path to php on the first line of the file. Please, forget the command line stuff unless you want to write command line scripts, and get that file running in a web environment where it belongs. happy to help if you need any more assistance doing that!