SlideShare une entreprise Scribd logo
1  sur  14
Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not
official document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
What is server side scripting?
Different programming languages used in server side
                     scripting

                      Niyaz
                       Kannanchery
                      niyazofficial@gmail.com

                      tweetboy

                      niyazsky

                      9746049 048
A ‘Simple’ Web Request



            :
                         1 - Request an HTML Page
Web
Browser                  4 - Present HTML Content




Web                      3 - Return HTML to Browser
Server
                 HTML   2 - Retrieve requested HTML
Static Web Pages
                                                           1. Client requests page


                                                              Internet
                                                 2. Web server sends the HTML file to the client




                                                                                                          Web Server
                 Client Machine
                With Web Browser

• A simple website is made up of one or more static HTML files. This means the page content does not change.
• The only way to update a page is for the author to edit the file.
• This is fine for small websites or those that require little updating.
• Static pages will not work for websites that need to deliver lots of custom and up-to-date content. Examples of these sites are:
       •Shopping / auctions
       •Discussion forums
       •Search engines
       •Online banking
       •Blogs
       •Web-based email
Dynamic Web Pages
•   The facebook homepage could be




                                            Static WebPage
    considered static because it has a
    fixed layout and content. It does not
    change.

•   After Login results page however is
    dynamic. This means its content
    can be changed.

•   The only practical way to create this
    page is by using a script, otherwise
    facebook would have to create a




                                            Dynamic WebPage
    static results page in advance for
    every single possible search.

•   The user never sees the work a
    script does, only the end result it
    send back to their web browser.
What is server side scripting?

 Its a technique used in web development,
which involves embedding scripts in
an HTML source code, which results in a
user's (client's) request to the server website
being handled by a script running server-
side, before the server responds to the
client's request.
How Scripting Languages Work
                                                                            Server runs script

                            Client requests page                                                       [ ASP / PHP / Ruby ]
                                                                                                       Script
                             Internet
                                                                                      Script builds
                        Completed HTML sent to client                                  HTML code




                                                             Web Server   HTML ready to send
                                                                                                       HTML Code
 Client Machine
With Web Browser




• The script, written by the website developer, generates the HTML code of the page requested.
• The HTML is not actually a file. The code is actually held in the server’s memory until it is sent directly to the client.
• A script may run other scripts, depending on its function. It will however still only give one end result.
• A website does not have to be completely made up of either scripts or HTML files. It can use a combination of the
  two.z
Scripting Languages
• A script creates what appears to be a static web page using content
  generated or read from a data source.
• There are many scripting languages, made by different companies and
  organisations.
• The current most popular are ASP, PHP and Ruby on Rails.
• All are very powerful and work in slightly different ways.
• It does not matter what scripting language a website uses because there
  are no compatibility issues with clients’ web browsers.
• The client only ever sees the final HTML generated by the script and not
  the script itself.
• Scripts often finish running in several milliseconds. Most web servers can
  run many scripts simultaneously with a minimal performance hit.
scripting languages with extension
ASP (*.asp)
ASP.NET (*.aspx)
C via CGI (*.c, *.csp)
ColdFusion Markup Language (*.cfm)
Java via JavaServer Pages (*.jsp)
JavaScript using Server-side JavaScript (*.ssjs, *.js)
Lua (*.lp *.op)
Perl CGI (*.cgi, *.ipl, *.pl)
PHP (*.php) - Open Source Scripting
Python, e.g. via Django (*.py)
Ruby, e.g. Ruby on Rails (*.rb, *.rbw)
SMX (*.smx)
Lasso (*.lasso)
WebDNA (*.dna,*.tpl)
Progress WebSpeed (*.r,*.w)
HISTORY
• Server-side scripting was first used in
  early 1995 by Fred DuFresne while
  developing the first web site for Boston,
  MA television station WCVB.
• In the earlier days of the web, server-side
  scripting was almost exclusively
  performed by using a combination
  of C programs, Perl scripts, and shell
  scripts using the Common Gateway
  Interface(CGI). Those scripts were
  executed by the operating system.
• Many modern web servers can directly
  execute on-line scripting languages such
  as ASP and PHP either by the web server
  itself or via extension modules
QUESTIONS SECTION
If this presentation helped you, please visit our
           page facebook.com/baabtra and like it.
               Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com
Contact Us

Contenu connexe

Tendances (20)

Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Common Gateway Interface ppt
Common Gateway Interface pptCommon Gateway Interface ppt
Common Gateway Interface ppt
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
 
Php introduction
Php introductionPhp introduction
Php introduction
 
Html frames
Html framesHtml frames
Html frames
 
Javascript basics
Javascript basicsJavascript basics
Javascript basics
 
Introduction to Node.js
Introduction to Node.jsIntroduction to Node.js
Introduction to Node.js
 
Express js
Express jsExpress js
Express js
 
Client-side JavaScript
Client-side JavaScriptClient-side JavaScript
Client-side JavaScript
 
Dom
DomDom
Dom
 
Window object
Window objectWindow object
Window object
 
Presentation of bootstrap
Presentation of bootstrapPresentation of bootstrap
Presentation of bootstrap
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Introduction to Web Architecture
Introduction to Web ArchitectureIntroduction to Web Architecture
Introduction to Web Architecture
 
Introduction to xampp
Introduction to xamppIntroduction to xampp
Introduction to xampp
 
Java script
Java scriptJava script
Java script
 
Client side scripting and server side scripting
Client side scripting and server side scriptingClient side scripting and server side scripting
Client side scripting and server side scripting
 
SQLITE Android
SQLITE AndroidSQLITE Android
SQLITE Android
 
MYSQL - PHP Database Connectivity
MYSQL - PHP Database ConnectivityMYSQL - PHP Database Connectivity
MYSQL - PHP Database Connectivity
 
JAVASCRIPT PPT [Autosaved].pptx
JAVASCRIPT PPT [Autosaved].pptxJAVASCRIPT PPT [Autosaved].pptx
JAVASCRIPT PPT [Autosaved].pptx
 

Similaire à Server side scripting

Web development using ASP.NET MVC
Web development using ASP.NET MVC Web development using ASP.NET MVC
Web development using ASP.NET MVC Adil Mughal
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NETSharePointKE
 
Anvita Gita Supersite Case Study Nov2000
Anvita   Gita Supersite Case Study Nov2000Anvita   Gita Supersite Case Study Nov2000
Anvita Gita Supersite Case Study Nov2000guest6e7a1b1
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web developmentMohammed Safwat
 
Week01 jan19 introductionto_php
Week01 jan19 introductionto_phpWeek01 jan19 introductionto_php
Week01 jan19 introductionto_phpJeanho Chu
 
Week01 jan19 introductionto_php
Week01 jan19 introductionto_phpWeek01 jan19 introductionto_php
Week01 jan19 introductionto_phpJeanho Chu
 
Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)Gera Paulos
 
webdesignmessage-com
webdesignmessage-comwebdesignmessage-com
webdesignmessage-comsyedmaahi
 
Isomorphic web application
Isomorphic web applicationIsomorphic web application
Isomorphic web applicationOliver N
 
WEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web DevelopmentWEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web DevelopmentRandy Connolly
 
Introduction to Web Development
Introduction to Web DevelopmentIntroduction to Web Development
Introduction to Web DevelopmentParvez Mahbub
 
Vaadin - Rich Web Applications in Server-side Java without Plug-ins or JavaSc...
Vaadin - Rich Web Applications in Server-side Java without Plug-ins or JavaSc...Vaadin - Rich Web Applications in Server-side Java without Plug-ins or JavaSc...
Vaadin - Rich Web Applications in Server-side Java without Plug-ins or JavaSc...Joonas Lehtinen
 

Similaire à Server side scripting (20)

Server side scripting
Server side scriptingServer side scripting
Server side scripting
 
Scripting languages
Scripting languagesScripting languages
Scripting languages
 
Web development using ASP.NET MVC
Web development using ASP.NET MVC Web development using ASP.NET MVC
Web development using ASP.NET MVC
 
Week01 jan19
Week01 jan19Week01 jan19
Week01 jan19
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Webdevelopment
WebdevelopmentWebdevelopment
Webdevelopment
 
Anvita Gita Supersite Case Study Nov2000
Anvita   Gita Supersite Case Study Nov2000Anvita   Gita Supersite Case Study Nov2000
Anvita Gita Supersite Case Study Nov2000
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web development
 
Week01 jan19 introductionto_php
Week01 jan19 introductionto_phpWeek01 jan19 introductionto_php
Week01 jan19 introductionto_php
 
Rutgers - Active Server Pages
Rutgers - Active Server PagesRutgers - Active Server Pages
Rutgers - Active Server Pages
 
Week01 jan19 introductionto_php
Week01 jan19 introductionto_phpWeek01 jan19 introductionto_php
Week01 jan19 introductionto_php
 
Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)
 
Webapplication ppt prepared by krishna ballabh gupta
Webapplication ppt prepared by krishna ballabh guptaWebapplication ppt prepared by krishna ballabh gupta
Webapplication ppt prepared by krishna ballabh gupta
 
webdesignmessage-com
webdesignmessage-comwebdesignmessage-com
webdesignmessage-com
 
Isomorphic web application
Isomorphic web applicationIsomorphic web application
Isomorphic web application
 
sell idea
sell ideasell idea
sell idea
 
Client and server
Client and serverClient and server
Client and server
 
WEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web DevelopmentWEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web Development
 
Introduction to Web Development
Introduction to Web DevelopmentIntroduction to Web Development
Introduction to Web Development
 
Vaadin - Rich Web Applications in Server-side Java without Plug-ins or JavaSc...
Vaadin - Rich Web Applications in Server-side Java without Plug-ins or JavaSc...Vaadin - Rich Web Applications in Server-side Java without Plug-ins or JavaSc...
Vaadin - Rich Web Applications in Server-side Java without Plug-ins or JavaSc...
 

Plus de baabtra.com - No. 1 supplier of quality freshers

Plus de baabtra.com - No. 1 supplier of quality freshers (20)

Agile methodology and scrum development
Agile methodology and scrum developmentAgile methodology and scrum development
Agile methodology and scrum development
 
Best coding practices
Best coding practicesBest coding practices
Best coding practices
 
Core java - baabtra
Core java - baabtraCore java - baabtra
Core java - baabtra
 
Acquiring new skills what you should know
Acquiring new skills   what you should knowAcquiring new skills   what you should know
Acquiring new skills what you should know
 
Baabtra.com programming at school
Baabtra.com programming at schoolBaabtra.com programming at school
Baabtra.com programming at school
 
99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love 99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love
 
Php sessions & cookies
Php sessions & cookiesPhp sessions & cookies
Php sessions & cookies
 
Php database connectivity
Php database connectivityPhp database connectivity
Php database connectivity
 
Chapter 6 database normalisation
Chapter 6  database normalisationChapter 6  database normalisation
Chapter 6 database normalisation
 
Chapter 5 transactions and dcl statements
Chapter 5  transactions and dcl statementsChapter 5  transactions and dcl statements
Chapter 5 transactions and dcl statements
 
Chapter 4 functions, views, indexing
Chapter 4  functions, views, indexingChapter 4  functions, views, indexing
Chapter 4 functions, views, indexing
 
Chapter 3 stored procedures
Chapter 3 stored proceduresChapter 3 stored procedures
Chapter 3 stored procedures
 
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
Chapter 2  grouping,scalar and aggergate functions,joins   inner join,outer joinChapter 2  grouping,scalar and aggergate functions,joins   inner join,outer join
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Microsoft holo lens
Microsoft holo lensMicrosoft holo lens
Microsoft holo lens
 
Blue brain
Blue brainBlue brain
Blue brain
 
5g
5g5g
5g
 
Aptitude skills baabtra
Aptitude skills baabtraAptitude skills baabtra
Aptitude skills baabtra
 
Gd baabtra
Gd baabtraGd baabtra
Gd baabtra
 

Server side scripting

  • 1.
  • 2. Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
  • 3. What is server side scripting? Different programming languages used in server side scripting Niyaz Kannanchery niyazofficial@gmail.com tweetboy niyazsky 9746049 048
  • 4. A ‘Simple’ Web Request : 1 - Request an HTML Page Web Browser 4 - Present HTML Content Web 3 - Return HTML to Browser Server  HTML 2 - Retrieve requested HTML
  • 5. Static Web Pages 1. Client requests page Internet 2. Web server sends the HTML file to the client Web Server Client Machine With Web Browser • A simple website is made up of one or more static HTML files. This means the page content does not change. • The only way to update a page is for the author to edit the file. • This is fine for small websites or those that require little updating. • Static pages will not work for websites that need to deliver lots of custom and up-to-date content. Examples of these sites are: •Shopping / auctions •Discussion forums •Search engines •Online banking •Blogs •Web-based email
  • 6. Dynamic Web Pages • The facebook homepage could be Static WebPage considered static because it has a fixed layout and content. It does not change. • After Login results page however is dynamic. This means its content can be changed. • The only practical way to create this page is by using a script, otherwise facebook would have to create a Dynamic WebPage static results page in advance for every single possible search. • The user never sees the work a script does, only the end result it send back to their web browser.
  • 7. What is server side scripting? Its a technique used in web development, which involves embedding scripts in an HTML source code, which results in a user's (client's) request to the server website being handled by a script running server- side, before the server responds to the client's request.
  • 8. How Scripting Languages Work Server runs script Client requests page [ ASP / PHP / Ruby ] Script Internet Script builds Completed HTML sent to client HTML code Web Server HTML ready to send HTML Code Client Machine With Web Browser • The script, written by the website developer, generates the HTML code of the page requested. • The HTML is not actually a file. The code is actually held in the server’s memory until it is sent directly to the client. • A script may run other scripts, depending on its function. It will however still only give one end result. • A website does not have to be completely made up of either scripts or HTML files. It can use a combination of the two.z
  • 9. Scripting Languages • A script creates what appears to be a static web page using content generated or read from a data source. • There are many scripting languages, made by different companies and organisations. • The current most popular are ASP, PHP and Ruby on Rails. • All are very powerful and work in slightly different ways. • It does not matter what scripting language a website uses because there are no compatibility issues with clients’ web browsers. • The client only ever sees the final HTML generated by the script and not the script itself. • Scripts often finish running in several milliseconds. Most web servers can run many scripts simultaneously with a minimal performance hit.
  • 10. scripting languages with extension ASP (*.asp) ASP.NET (*.aspx) C via CGI (*.c, *.csp) ColdFusion Markup Language (*.cfm) Java via JavaServer Pages (*.jsp) JavaScript using Server-side JavaScript (*.ssjs, *.js) Lua (*.lp *.op) Perl CGI (*.cgi, *.ipl, *.pl) PHP (*.php) - Open Source Scripting Python, e.g. via Django (*.py) Ruby, e.g. Ruby on Rails (*.rb, *.rbw) SMX (*.smx) Lasso (*.lasso) WebDNA (*.dna,*.tpl) Progress WebSpeed (*.r,*.w)
  • 11. HISTORY • Server-side scripting was first used in early 1995 by Fred DuFresne while developing the first web site for Boston, MA television station WCVB. • In the earlier days of the web, server-side scripting was almost exclusively performed by using a combination of C programs, Perl scripts, and shell scripts using the Common Gateway Interface(CGI). Those scripts were executed by the operating system. • Many modern web servers can directly execute on-line scripting languages such as ASP and PHP either by the web server itself or via extension modules
  • 13. If this presentation helped you, please visit our page facebook.com/baabtra and like it. Thanks in advance. www.baabtra.com | www.massbaab.com |www.baabte.com