Thursday, 23 May 2013

Difference between Server side scripting and Client side scripting


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

DBT - Models

Models are where your developers spend most of their time within a dbt environment. Models are primarily written as a select statement and ...