PHP – INTRODUCTION

For Web development, PHP is one of the important language, with out which we cant run a dynamic website. There were times when static websites were majorly used. As time passed, and demand raised, dynamic website occupied the entire internet space. With out a dynamic website, it is hard to provide user an engaging content. PHP is used to establish communication between server and user. (There are other server side languages exist but we primarily focusing on PHP in this PHP Chapter Series)

what is php?

Official website of PHP is http://php.net

If you are not aware of the difference between Client side and server side, then read : Client Side vs Server Side

Why php is used?

BENEFITS OF PHP:

How to install PHP?

In most of the hosting servers, PHP is pre-installed. The best part about hosting servers, they are not only providing the latest version of PHP but also provides previous versions of PHP. By this, developer who has developed their entire website with previous version of php can easily transfer to another server account.

What is the difference between HTML and PHP?

HTML is a markup language. It is used to structure the webpage, stylise the texts of webpage, insertion of graphics (Images, Videos) and establishing Hyperlinks. HTML webpages can run on the client system only. Therefore, Browsers (Chrome, Firefox, Safari, Internet Explorer) can understand and execute HTML Pages. Where as PHP is server side scripting language. It is used to communicate in between client system and server. Therefore PHP scripts can only be placed inside server and they run and execute inside server only.

What is the difference between PHP and SQL?

PHP is server side scripting language. But PHP too has limitations. Despite the database exists in the server, it can’t access the database directly. To access the database, SQL is required. SQL is Standard Query language. Its main job is to create table, update the information, fetch the information from the database table, and delete records & table if required. Most of the hosting servers provide MySQL database. MySQL is database engine. Where as SQL is the language using which we can access information from database.

Therefore PHP is server side scripting language and SQL is a Query language.

To know more about the difference between database and table: Read Difference between database and table

Is PHP Front end or Back End?

Is php front end or back end, the answer lies in its purpose. The purpose of PHP is to establish communication in between client system and server. As we have discussed in one of the previous chapters, HTML, Javascripts are required to load a website in a client system. But when a client system need to communicate with the server, then server side scripting is required. PHP fulfils this requirement.

PHP is Back END

Is it easy to learn PHP?

Is it easy to learn php? Depends on so many factors. If you are looking for something light weight, easy to understand, and easily available then PHP is good option. With availability of various server softwares, using which we can use our own computer system as server and practice, PHP learning is no more a tough language to learn. The best way to learn PHP is to grab a tiny project and put all effort to accomplish it. This way one can learn PHP in little span of time.

But the root factor is good understanding of basics of PHP. It is going to help life long.

Looking for a software that can help to use your computer system as server, then install xampp. It is easy to install. It has inbuilt latest version of PHP. It has inbuilt MySQL Database.

Dont know how to download xampp and install, read: How to download and install xampp in computer system?