In this tutorial, we will learn an introduction to PHP. PHP stands for Hypertext preprocessor and it is a well-known language to develop a web application. In a short definition, PHP is a server-side, open-source technology which is used to develop web applications ( Web applications help us to process data on the server-side and to generate dynamic web pages for clients ).
Difference between Client-side and server-side scripting language: –
You have might hear many times client-side or server-side scripting languages. But do you know the difference between client-side and server-side scripting language?.
- Main Difference between client-side and server-side scripting languages is that Server Side Scripting languages need a server to run mean we can not run this kind of language directly on the client machine. On the other side, client-side scripting can directly work on the client machine.
- Moreover, End-user can not see server-side code because the whole code only stays at the server. Server-side code will process user request and send only result back to the user. But end-user can see client-side scripting code. Because the client-side scripting code works on the client machine.
Now we know PHP is a server-side scripting language. It means 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 another option we can create a virtual server in PC. There is a lot of free software in the market that allows us to create a virtual server in our PC. Follow the next lesson to learn how to setup Environment for PHP in your PC.
No comments: