Web Server

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 15

Server-side Scripting

● Server-side scripting is a technique used in web development


which involves employing scripts on a web server which
produces a response customized for each user's (client's) request
to the website.

● PHP,JSP,PERL,PHYTHON,JAVA
CLIENT SIDE SCRIPTING
● Client-side scripting is a process by which a web-based
computer program runs on the user's computer rather than on
the computer hosting the website.
● Specifically, it runs through a type of program known as a
script, which is handled by the user's web browser.

● HTML, CSS and javascript.


Client side scripting Server side scripting
Source code is not visible to user because it’s
Source code is visible to user. output
of server side is a HTML page.

In this any server side technology can be use and


It usually depends on browser and it does not
it’s version. depend on client.

It runs on user’s computer. It runs on web server.

HTML, CSS and javascript are used. PHP, Python, Java, Ruby are used.
d
QUESTION
S
1) Connecting websites to the backend servers,processing the data
and controlling the behaviour of higher layers ,all these things are
done by
A.HTML B.CSS Script
language
D.Server side PHP script
C.Java script
b

3)The server side scripts are

a. visible to end user


b. Invisible to end user
c.both a and b
d.none of the
above
Domain name

● A domain name is a unique name that identifies a website.


● Each website has a domain name that serves as an address, which is used to acc

● www.google.com
Different Types of Domains
TLD: Top Level Domains-a type of domain name which is at the
top level of the internet’s domain name system

ccTLD: Country Code Top Level Domains


ccTLDs use just two letters and are based upon international
country codes, such as .us for the United States and .jp for
Japan.

gTLD: Generic Top Level Domain


A gTLD is essentially a top-level domain that doesn’t rely on a
country code. Many gTLDs are intended for a specific use-case,
such as .edu which is aimed at educational institutions
Domain name
server
● DNS is a computer server that contains a database of
many IP addresses and their associated domain names.
● It serves to translate a requested domain name into an IP address,
so that the computer knows which IP address to connect to for
the requested contents.
● It is much easier for us to remember a domain name, entri.c
om, rather than a string of numbers, 104.20.73.209 (IP
address) to website.
Domain Name Registration
● To register a domain name involves registering the name you want with
an organization called ICANN through a domain name registrar.
● For example, if you choose a name like "mydomain.com", you should
go to a registrar, pay a registration fee that costs around 10 USD
per year for that name
● keltron
● GoDaddy
● Name
● iPage
Data
Validation
Data validation is the process of ensuring that user input is clean,
correct, and useful.
● has the user filled in all required fields?
● has the user entered a valid date?
● has the user entered text in a numeric field?
Server side validation is performed by a web server, after input has
been sent to the server.
Client side validation is performed by a web browser, before input is
sent to a web server
<script type = "text/javascript">

function validate() {
if( document.myForm.Name.value ==
"" ) { alert( "Please provide your
name!" );
document.myForm.Name.focus() ;
return false;
}
else if( document.myForm.Zip.value ==
"" || document.myForm.Zip.value.length != 6 )
{
alert( "Please provide a zip in the format
#####." ); document.myForm.Zip.focus() ;
return false;
}
else if( document.myForm.Country.value == "-
1" ) { alert( "Please provide your country!" );
return false;
}
Else if(!document.myForm.terms.checked) {
alert("Please indicate that you accept the Terms and Conditions");
form.terms.focus();
return false;
}else
{
return( true );
}}

</script>
Chech slideSERVER
SIDE SCRIPTING
● Server-side scripts are used by back-end web developers to
build the back-end software of a website—the mechanics we
don’t see, but that make a site’s usability and functionality
possible.
● Runs on a server, embedded in the site’s code
● Designed to interact with back-end permanent storage, like
databases, and process information from the server to access
the database—like a direct line from user to database
● Facilitates the transfer of data from server to browser, bringing

You might also like