Client Side Scripting Vs Server Side Scripting
Client Side Scripting
- Client-side scripting is used when the users’ browser already has all the code and the page is altered on the basis of the user's input.
- Client-side scripting cannot be used to connect to the databases on the web server.
- Client-side scripting is possible to be blocked by the user.
- The Web Server executes the server side scripting that produces the page to be sent to the browser.
- The browser receives the page sent by the server and executes the client-side scripts.
- Client-side scripting can’t access the file system that resides at the web server.
- The files and settings that are local at the user’s computer can be accessed using Client-side scripting.
- 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 Client side scripting languages : JavaScript, VB script, etc.
Server Side Scripting
- Server-side scripting is used to create dynamic pages based on a number of conditions when the user's browser makes a request to the server.
- Server-side scripting is used to connect to the databases that reside on the web server.
- Server-side scripting can’t be blocked by the user.
- The Web Browser executes the client side scripting that resides at the user’s computer.
- The server executes server-side scripts to send out a page but it does not execute client-side scripts.
- Server-side scripting can access the file system residing at the web server.
- The settings that belong to the Web server can be accessed using Server-side scripting.
- Response from a server-side script is slower as compared to a client-side script because the scripts are processed on the remote computer.
- Examples of Server-side scripting languages: PHP, JSP, ASP, ASP .NET, Ruby, Perl n many more.
Comments
Post a Comment