PHP - Setup

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.

Set up PHP on Web Host

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.

Set up PHP on Computer

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 −

Download Web Server

      WAMP Windows  

      LAMP Linux  

      MAMP MAC  

Write Your Script

To write your script, you need to use a text editor program,the following general used text editor in different os platform:

      Windows Notepad


      TextEdit on Mac OS X

Write Your First Script

	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.

Share Share on Facebook Share on Twitter Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit

You may also like this!