In this tutorial, we will learn an introduction to PHP. PHP stands for Hypertext preprocessor and it is a well-known language for developing web applications. In short definition, PHP is a server-side, open-source technology used to develop web applications. Web applications help us process data on the server side and generate dynamic web pages for clients. PHP was developed by Rasmus Lerdorf in 1994.
Difference between Client-side and server-side scripting language: –
You might have heard about client-side or server-side scripting languages. But do you know the difference between client-side and server-side scripting languages?
- The main difference between client-side and server-side scripting languages is that Server Side Scripting languages need a server to run, It means we can not run this kind of language directly on the client machine. On the other side, client-side scripting can work on the client machine.
- Moreover, the user can not see server-side code because the whole code only stays on the server. Server-side code will process user requests and send only results back to the user. However, the end-user can see client-side scripting code. Because client-side scripting code works on the client machine.
We can not run code written in PHP directly on our PC. So it means we need a server to run code written in PHP. Do not worry I am not gonna tell you to buy a server. We have an alternative solution, we can create a virtual server on a PC. There is a lot of free software available that allows us to create a virtual server on our PC.
Versions of PHP:
Before jumping to coding in PHP. Please take a quick glance at the history of the versions in PHP and here you can also see the latest available version.
|Version||Release Date||Supported until|
|7.0||3 December 2015||10 January 2019|
|7.1||1 December 2016||1 December 2019|
|7.2||30 November 2017||30 November 2020|
|7.3||6 December 2018||6 December 2021|
|7.4||28 November 2019||28 November 2022|
|8.0||26 November 2020||26 November 2023|
|8.1||25 November 2021||25 November 2024|
|8.2||8 December 2022||8 December 2025|
|8.3||23 November 2023||23 November 2026|
Please continue with the upcoming tutorials to learn about how to set the environment for PHP on PC and how to write a Hello World program in PHP.