Note: You must have the knowledge of HTML, CSS, and JavaScript.
To learn PHP we should read this boring theory but next tutorials are very interesting .
PHP (Preprocessor Hypertext) is a server side scripting language. It is free to use and open source. Pages code is written in PHP, compiled and executed on the server side but pages are visible to client as an HTML page, but the client is not able to see the source code of the page. With the help of PHP we can make the web page dynamic. Dynamic means page, according to user like the Facebook when we open Facebook and enter the username and password then we see only the information of us, this is a dynamic web page.


To understand this we take an example of the Facebook. The client has the web browser and he request for the web page of Facebook by entering the URL facebook.com. Then Facebook provide login page, when user enters his/her username and password then the server checks the username and password is correct or not which is saved in database of the Facebook. If it is correct then the page of client is opened otherwise it generates an error. When the user open his/her Facebook ID, then he/she can see the timeline, photos, etc. He/She can update status, upload anything, etc.
So this is the working of Facebook but what are the things that the PHP Application did in this:
- Firstly, PHP Application provides the login page in an HTML web page.
- Checks for username and password with the help of the database of Facebook.
- If the password and username is correct, then PHP Application open the users page, otherwise generates error.
- All uploads of all the user saved in the database of Facebook, but PHP only provide the data which user want.
There are many tasks that a PHP Application did:
- About PHP File
A PHP file can contain the text, HTML, JavaScript, CSS and PHP code. How, we see in the next tutorials. The PHP file saves on server and runs on the server. The extension of the PHP file is .php.
- Powers of PHP
PHP can generate dynamic page content. PHP can create, open, read, write, delete, and close files on the server. It can collect form data. PHP can send and receive cookies and it can add, delete, and modify data in your database. PHP can be used to control user-access & authentication. It can encrypt data.
- Reasons of using PHP
PHP runs on various platforms (Windows, Linux, UNIX, Mac OS X, etc.). PHP is compatible with almost all servers used today (Apache, IIS, etc.). PHP supports a wide range of databases and is free. Download it from the official PHP resource: www.php.net. It is easy to learn and runs efficiently on the server side.




SubashPosted Jul 28, 2016, 3:18 AM
Nice Work
Jainish ShahPosted Jan 15, 2016, 1:26 PM
Nice one
P PPosted Sep 26, 2015, 8:13 AM
thnx to all
Harshad PansuriyaPosted Sep 23, 2015, 3:17 AM
Nice one
Sibeesh VenuPosted Sep 23, 2015, 3:05 AM
Nice Share
Ankit BansalPosted Sep 23, 2015, 1:51 AM
thanks for sharing..
Karthikeyan KPosted Sep 22, 2015, 11:16 PM
Good one
Santhakumar MunuswamyPosted Sep 22, 2015, 3:05 PM
Welcome
Santhakumar MunuswamyPosted Sep 22, 2015, 3:05 PM
Good Start
Pankaj Kumar ChoudharyPosted Sep 22, 2015, 1:36 PM
Nice Start Pradeep Welcome to C#-Corner Community......
Gopi ChandPosted Sep 22, 2015, 1:22 PM
Nice work Pradeep...welcome to csharpcorner community :)