To run just ordinary php scripts that do not acess database you need Apache web server. To check do you have it installed open any web browser and type http://localhost
if you are using the same machine where your apache and php files should be, or http://ip_adrees_of_the_apache_server
if your try to connect from a different machine. You should get apache web page or just text "it works".
This will prove that your apache server do / does not work. If you pass this step then check your php code.