Sunday, July 21, 2013

How to start with PHP programming

HOW TO STARTS WITH PHP PROGRAMMING



WHAT IS PHP?




php is server side scripting language designed for web development. PHP stands for hypertext preprocessor. PHP is widely used open source general purpose scripting language specially for web DEVELOPMENT. PHP need not need to write in separate file. We can just embedded it into HTML. PHP code is interpreted by a web servers and it generate the php pages.



WHY PHP?



* PHP is most popular scripting language

* PHP can be deployed on most of web server, on almost every operating system and platform free of charge

* Easy to learn

* fast development



REQUIRED SOFTWARE'S



1)APACHE SERVER:



PHP require apache server for serving the php page request. Apache is simple https server for server the http requests

2) MYSQL DATABASE PHP support any databasebut mysql with php is famous.



START PHP DEVELOPMENT :



Step -1 : Download XAMPP



* Xampp stands for xmp apache mysql php and perl. It is all in one package for php

*So easy to download and install XAMPP than seperate php and mysql

* XAMPP provides control panel which make simple start and stop apache and mysql services



DOWNLOAD XAMPP FROM



STEP-2 : INSTALL XAMPP Then start the apache server service by clicking start on the xampp control panel. In xampp htdocs default root directory to store the php web pages we change this path by editing config file of xampp. Then start the apache serever and check the server started or not by opening the http:localhost in your web browser then it display the homepage of xampp.



CREATE THE FIRST HELLO WORLD PROGRAM IN PHP :



Crate index.php file in HTDOCS folder of XAMPPCopy the below sample hello world code



Save index.php file.

Open the web browser and type url http:localhostindex.php. Then the output of index.php hello world is display in the browser.



Best of luck for programming and do some fun with php.........
Full Post

1 comment:

  1. I think that at the beginning we should know the basics of the PHP programming language very well. This should start if we intend to work in this area. If we are good we can always check IT jobs that appear almost every day.

    ReplyDelete