We would define a script as a set of instructions. For Web pages they are instructions either to the Web server(server-side scripting) or to the Web Browser (client-side scripting). Let’s have a look how they differ from each other :

>> Server side scripting is used to create dynamic pages based a number of conditions when the users browser makes a request to the server.

Client side scripting is used when the users browser already has all the code and the page is altered on the basis of the users input.

>> The Web Server executes the server side scripting that produces the page to be sent to the browser.

The Web Browser executes the client side scripting that resides at the user’s computer.

>> Server executes server-side scripts to send out a page but it does not execute client-side scripts.

The browser receives the page sent by the server and executes the client-side scripts.

>> 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.

>> Server side scripting can access the file system residing at the web server.

Client side scripting can’t access the file system that resides at the web server.

>> The  settings that belong to Web server can be accessed using Server side scripting.

The files and settings that are local at the user’s computer can be accessed using Client side scripting.

>> Server side scripting can’t be blocked by the user.

Client side scripting is possible to be blocked by the user.

>> Response from a server-side script is slower as compared to a client-side script because the scripts are processed on the remote computer.

Response from a client-side script is faster as compared to a server-side script because the scripts are processed on the local computer.

>> Examples of Server side scripting languages : PHP, JSP,  ASP, ASP.Net, Ruby, Perl n many more.

Examples of Client side scripting languages : Javascript, VB script, etc.

This was a small try to point out the differences between the scripting languages used by both the server and the browser. Hope you find it useful and appreciative.. :)