PHP does not come pre-installed on Windows or other systems. To work with PHP on Windows and other like linux system, PHP will need to be manually downloaded and installed.if you are directly run your php application in web server first by a web space and domain name to run your php application and script,the following two method explain to run php live server and localhost in your computer.
Buy a web space and domain name on internet service provider like Godaddy and Bluehost.After buy web space and domain name.goto file manager and create a file and writeing your php script and run live application.
To run PHP code on your local machine you need three things:
Web Server - PHP will work with virtually all Web Server software, including Microsoft's Internet Information Server (IIS) but then most often used is freely available Apache Server. Download Apache for free here −
PHP - In order to process PHP script instructions a parser must be installed to generate HTML output that can be sent to the Web Browser. This tutorial will guide you how to install PHP parser on your computer.
MySQL Databases - PHP will work with virtually all database software, including Oracle and Sybase but most commonly used is freely available MySQL database. Download MySQL for free here −
To write your script, you need to use a text editor program,the following general used text editor in different os platform:
Windows Notepad
Vi
TextEdit on Mac OS X
<?php
echo "This is My First Script";
?>
completely understand above information about setup and install php read next topic click on next button and read php syntax it very usedful for beginners of php programming.