Saturday, September 25, 2021
Home Differences What is Server-Side Scripting? How does It work?

What is Server-Side Scripting? How does It work?

In this article we are going to discuss something about Server Side Scripting . So let’s begin from the what is server side scripting?

If you don’t know, what is a server? and how it works? then you can read this article What is the Server? How does It work?

What is Server-Side Scripting?

Server-side scripting is a way of running any program on the server. In other words, the scripts that are executed on the webserver is known as server-side scripts.

These scripts are stored on the server and, it is executed when any client sends the request to perform any task.

For example, if you log in to your Facebook account, for that you enter your username or password, and click on the login button,

then that username or password given by you is sent to the server where server-side scripts are there that access the database and verifies that the username or password provided by you is correct or not.

If your login information was wrong scripts send the error message page to your browser,

and if your login information was correct it will redirect you to the home page of Facebook.

The important thing is that this program or script executes only on the server and after execution, It will send the output of the program in HTML format to the client.

You will see the websites of a news channel or the web application that will give them information on whether, It will change continuously, this will only possible through server-side scripting.

There are various types of programming languages are available to make server-side scripts they are as follows

  1. PHP
  2. Java
  3. Server-side JavaScript
  4. Python
  5. Perl
  6. Ruby and many more…

Advantages Of Server-side Scripting

  1. By using server-side scripting we can make database-driven websites or web applications.
  2. through this, we can make dynamic content or pages.
  3. The code of the server-side scripts is only available on the server so this is not accessible by the client that’s why this is secure.
  4. This is not dependent on the browser.
  5. These scripts are very useful to make such complex websites as social media, e-commerce, or even railway ticket reservation.

Disadvantages Of Server-side Scripting

  1. It can works only when we install the scripting software on the server.
  2. Making any dynamic website database is a very important part.
  3. If the speed of the hosting server is slow then the speed of server-side scripting becomes also slow.
  4. If the website is very large or too much traffic is there then you need better or powerful hosting.
  5. Or If the coding was wrong or if we do a mistake there is a risk of website hacking.

Difference Between Client-side scripting or Server-side scripting

Sr.No                   Client-Side ScriptingServer-Side Scripting
1It is a front-end technology.It is a back-end technology.
2It is run on the client’s browser.Whereas it is run on the webserver.
3The user can view the source code of client-side scripting.The user can not watch the code of server-side scripting.
4Client-side scripts never connect with the database on the webserver.With the help of this, we can access the database on the webserver.
5Client-side scripting cannot access the file system of the server.It can access the file system stored on the server.
6The response of the client-side script is fast as compared to server-side scripting.The response of the server-side script is slow as compared to client-side scripting.
7The user can block the client-side scripting by the setting of their browser so that it will not run on the user’s browser.The user cannot block this type of scripts.

How Does Server-Side Scripting Works?

  • As the above image displayed that first when you type something on the URL(Universal Resource Locator).
  • The request will go to the server.
  • The server takes the information you put into the URL.
  • After that, the server will send that information to the scripting language.
  • Which is then turned into the variable data to custom data.
  • And after then it sends back to you as a web page.
  • And your data will be displays to you on your browser.

You May Also Like:–


Please enter your comment!
Please enter your name here

Stay Connected


Most Popular

Best Tricks For Play & Win Ludo

Ludo King Game has now become the world’s popular game. Everyone, children, old and young, like to play this game.


In this article we are going to differenciate RTMP , RTSP and HLS (RTMP V/S RTSP V/S HLS) so lets start.

How To Delete Facebook Account Permanently?

Today we will know about one problem, which people keep talking about, today we will know how to delete Facebook account. With...

Encrypt/Lock Your Pendrive with Password without any Software

How can you secure your pen drive without any software, you just have to follow some steps. After following these, you will...

Recent Comments

headlamp flashlight on RTMP V/S RTSP V/S HLS