Server side and Client side
Server side and Client side
The server-side scripting constructs a communication link between a server and a client (user).
Earlier the server side scripting is implemented by the CGI (Common Gateway
Interface) scripts. The CGI was devised to execute the scripts from programming languages
such as C++ or Perl on the websites.
The server-side involves three parts: server, database, API’s and back-end web software
developed by the server-side scripting language. When a browser sends a request to the server
for a webpage consisting of server-side scripting, the web server processes the script prior to
serving the page to the browser. Here the processing of a script could include extracting
information from a database, making simple calculations, or choosing the appropriate content
that is to be displayed in the client end. The script is being processed and the output is sent to
the browser. The web server abstracts the scripts from the end user until serving the content,
which makes the data and source code more secure.
After the advent of CGI, multiple programming languages were evolved such as PHP, Python,
Ruby, ColdFusion, C#, Java, C++ and so on for server-side scripting among which some of them
are described below:
PHP: It is the most prevalent server-side language used on the web which was designed to
extract and manipulate information in the database. The language is used in association with
SQL language for the Database. It is used in Facebook, WordPress and Wikipedia.
Python: The language is fast and contains shorter code. It is good for beginners as it
concentrates on the readability and simplicity of the code. Python functions well in the object-
oriented environment and used in famous sites like Youtube, Google, etc.
Ruby: It contains complex logic which packages the back-end with database utility which can
also be provided by PHP and SQL.
Definition of Client-side Scripting
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 client-side scripting can be used to examine the user’s form for the errors
before submitting it and for changing the content according to the user input. As I mentioned
before, the web requires three elements for its functioning which are, client, database and
server.
The effective client-side scripting can significantly reduce the server load. It is designed to run
as a scripting language utilizing a web browser as a host program. For example, when a user
makes a request via browser for a webpage to the server, it just sent the HTML and CSS as plain
text, and the browser interprets and renders the web content in the client end.
HTML: It is the fundamental building blocks of web programming which provides the frame to
the website. It describes the arrangement of the content.
CSS: CSS provides the way to design the graphic elements which help in making the appearance
of the web application more attractive.
JavaScript: It is also a client-side scripting language which essentially devised for the specific
purpose, but currently there are various JavaScript frameworks used as server-side scripting
technology.
BASIS FOR
SERVER-SIDE SCRIPTING CLIENT-SIDE SCRIPTING
COMPARISON
Basic Works in the back end which could not Works at the front end and script
the server.
Affect Could effectively customize the web Can reduce the load to the