Client-Side and Server-Side scripting

Client Side Scripting Language

The client-side environment used to run scripts is usually a browser. The processing takes place on the end users computer. The source code is transferred from the web server to the users computer over the internet and run directly in the browser.

Client-side scripting is performed to generate a code that can run on the client end (browser) without needing the server side processing. Basically, these types of scripts are placed inside an HTML document. The effective client-side scripting can significantly reduce the server load.

Example : Some server side scripting languages are HTML CSS Javascript

Server Side Scripting Language

The server-side environment that runs a scripting language is a web server. A user's request is fulfilled by running a script directly on the web server to generate dynamic HTML/PHP/ASP pages. This pages are sent to the client browser. It is usually used to provide interactive web sites that interface to databases or other data stores on the server.

Server-side scripting is a technique of programming for producing the code which can run software on the server side, in simple words any scripting or programming that can run on the web server is known as server-side scripting. The operations like customization of a website, dynamic change in the website content, response generation to the user’s queries, accessing the database, and so on are performed at the server end.

The server-side scripting constructs a communication link between a server and a client (user) Example : Some server side scripting languages are PHP Python etc.

Advantages of Client-Side and Server-Side scripting 

  • The primary advantage to server-side scripting is the ability to highly customize the response based on the user's requirements, access rights, or queries into data stores.
  • Server side scripting can’t be blocked by the user.
  • Response from a server-side script is slower as compared to a client-side script.
  • Client-side scripting happens when the browser possesses all the codes and the page is later changed according to the user’s input.
  • Server-side scripting happens when a user’s browser initiates a server request. Dynamic pages are then created based on several conditions.
  • Server-side scripting helps in connecting to the databases that are already present in the web server.
  • Client-side scripting does not connect to the databases that are on the web server.
  • Client side scripting is possible to be blocked by the user.
  • The main difference between server-side scripting and client-side scripting is that the server side scripting involves server for its processing. On the other hand, client-side scripting requires browsers to run the scripts on the client machine but does not interact with the server.
  • Server side scripting is used to connect to the databases that reside on the web server. Client side scripting cannot be used to connect to the databases on the web server

Advantages Of NCERT, CBSE & State Boards Solutions For All Subjects

  • All the NCERT Solutions have been prepared by academic experts having 10+ years of teaching experience.
  • They have prepared all the solutions in simple and easy language, so that each and every student can understand the concepts easily.
  • All the solutions have been explained step to step wise in details with better explainations.
  • Students can also use these question and answers for your assignments and in homework help.
  • All the solutions have been explained in detail and the answers have been compiled in a step-wise manner.
  • All the question and asnwers are commonly prepared according to the Latest Syllabus of Board Education and Guidelines.
  • Students can know about the various types of questions asked in the exams with the help of these solutions.

Top Engineering Courses