SlideShare a Scribd company logo
1 of 11
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
Server Side Scripting
                           Vineeth Menon
                vineethmenon18@gmai.com
Static Web Pages


                                                                   1. Client requests page


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


                  Client Machine
                                                                                                                      Web Server
                 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
• These types of websites rely on dynamic content so cannot be served by static pages. They need to be able to display content taken
  from a database or other source.
• This is where server-side scripting is needed.
Dynamic Web Pages
The Google homepage could be
   considered static because it has a




                                                  Static
   fixed layout and content. It does not
   change.
A search 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 Google
   would have to create a static results
   page in advance for every single
   possible search.




                                                  Dynamic
The user never sees the work a script
   does, only the end result it send back
   to their web browser.
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




You can sometimes tell which scripting language a website is using by looking
   at the address bar.
Text after a question mark in an address is parameters and variables sent to
   the script.
Some website developers choose to design their sites in a way that hides
   evidence of server-side scripting. They do this by telling the web server to
   use the scripts while hiding or changing the text in the address bar. This is
   usually just to tidy the appearance or shorten the length of the address
   bar, making it easier to read or copy.
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.
Databases
One of the most useful features of nearly all of the scripting languages is their ability
    to enter and retrieve information from a database.
Like scripting languages, there are many free and commercial database applications
    available.
Some are designed to be used by small websites (such as MySQL) whereas others (eg.
    Oracle) are very powerful, have dedicated servers and are used by large companies
    and organisations.
Scripts interact with databases using Structured Query Language (SQL). This is a very
    simple text language that allows nearly any script to communicate with nearly any
    database, practically eliminating any compatibility issues.
This also allows a website developer to change/upgrade the database application their
    website uses with minimal changes to their code.
A website script can change the data in a database as well as retrieving it.
Scripts & Databases

                                                                      1. Server receives request
                                                                         for web page

                                                                      2. Server begins to run script
                       1. Client requests page
                                                                      3. Script requests data from
                        Internet                                         the database using SQL

                                                                      4. Script processes the
                   6. Completed HTML sent to client                      returned data and
                                                                         formats it as needed

                                                                      5. Script builds the HTML         [ Oracle /
                                                         Web Server      code to create the              MySQL /
                                                                         requested page                PostgreSQL ]
 Client Machine                                                                                         Database
With Web Browser                                                      6. Completed HTML page
                                                                         sent back to the client’s
                                                                         web browser

                                                                         [ ASP / PHP / Ruby ] Script
 • Again, the script on the server is generating all of the HTML code, but this time it is getting some
   content of the page from a database. As far as the web browser (and the user) is concerned, all
   they see is the end result, a completed web page.
 • The script requests the raw data it needs from the database using Structured Query Language
   (SQL). The database immediately returns the data requested by the script.
 • Now that the script has the data it needs, it can build the HTML code to send back to the client.
Contact Us

More Related Content

What's hot

IBM Innovate 2013: Making Rational HATS a Strategic Investment
IBM Innovate 2013: Making Rational HATS a Strategic InvestmentIBM Innovate 2013: Making Rational HATS a Strategic Investment
IBM Innovate 2013: Making Rational HATS a Strategic Investment
Strongback Consulting
 
Service Oriented Architecture Luqman
Service Oriented Architecture LuqmanService Oriented Architecture Luqman
Service Oriented Architecture Luqman
Luqman Shareef
 
Office 2013 loves web developers slide
Office 2013 loves web developers   slideOffice 2013 loves web developers   slide
Office 2013 loves web developers slide
Fabio Franzini
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0
Buu Nguyen
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web development
Mohammed Safwat
 
WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...
Fabio Franzini
 

What's hot (20)

Asp net
Asp netAsp net
Asp net
 
Industrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.netIndustrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.net
 
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)
 
IBM Innovate 2013: Making Rational HATS a Strategic Investment
IBM Innovate 2013: Making Rational HATS a Strategic InvestmentIBM Innovate 2013: Making Rational HATS a Strategic Investment
IBM Innovate 2013: Making Rational HATS a Strategic Investment
 
Service Oriented Architecture Luqman
Service Oriented Architecture LuqmanService Oriented Architecture Luqman
Service Oriented Architecture Luqman
 
Cloud computing by Luqman
Cloud computing by LuqmanCloud computing by Luqman
Cloud computing by Luqman
 
Web Server-Side Programming Techniques
Web Server-Side Programming TechniquesWeb Server-Side Programming Techniques
Web Server-Side Programming Techniques
 
Office 2013 loves web developers slide
Office 2013 loves web developers   slideOffice 2013 loves web developers   slide
Office 2013 loves web developers slide
 
Asp.net
Asp.netAsp.net
Asp.net
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0
 
Sviluppare app per office
Sviluppare app per officeSviluppare app per office
Sviluppare app per office
 
Introduction to web development
Introduction to web developmentIntroduction to web development
Introduction to web development
 
Web server
Web serverWeb server
Web server
 
Eclipse orion
Eclipse orionEclipse orion
Eclipse orion
 
Externalizing Chatter Using Heroku, Angular.js, Node.js and Chatter REST APIs
Externalizing Chatter Using Heroku, Angular.js, Node.js and Chatter REST APIsExternalizing Chatter Using Heroku, Angular.js, Node.js and Chatter REST APIs
Externalizing Chatter Using Heroku, Angular.js, Node.js and Chatter REST APIs
 
Ecom 1
Ecom 1Ecom 1
Ecom 1
 
List of Web Technologies used in Web Development
List of Web Technologies used in Web DevelopmentList of Web Technologies used in Web Development
List of Web Technologies used in Web Development
 
Html 5
Html 5Html 5
Html 5
 
WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...
 
Web servers
Web serversWeb servers
Web servers
 

Viewers also liked (7)

Xml
XmlXml
Xml
 
Exception handling
Exception handlingException handling
Exception handling
 
Algebra
AlgebraAlgebra
Algebra
 
Dbdesign
DbdesignDbdesign
Dbdesign
 
Improving spelling
Improving spellingImproving spelling
Improving spelling
 
Decision support system
Decision support systemDecision support system
Decision support system
 
Logical Reasoning
Logical ReasoningLogical Reasoning
Logical Reasoning
 

Similar to Server side scripting

Anvita Gita Supersite Case Study Nov2000
Anvita   Gita Supersite Case Study Nov2000Anvita   Gita Supersite Case Study Nov2000
Anvita Gita Supersite Case Study Nov2000
guest6e7a1b1
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp Net
Adil Mughal
 
Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web application
Rahul Bansal
 

Similar to Server side scripting (20)

Server side scripting
Server side scriptingServer side scripting
Server side scripting
 
Scripting languages
Scripting languagesScripting languages
Scripting languages
 
Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)Servlets as introduction (Advanced programming)
Servlets as introduction (Advanced programming)
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
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
 
15.web document types.pdf bdgjrjdhdhsgbdidh
15.web document types.pdf bdgjrjdhdhsgbdidh15.web document types.pdf bdgjrjdhdhsgbdidh
15.web document types.pdf bdgjrjdhdhsgbdidh
 
Anvita Gita Supersite Case Study Nov2000
Anvita   Gita Supersite Case Study Nov2000Anvita   Gita Supersite Case Study Nov2000
Anvita Gita Supersite Case Study Nov2000
 
Making Of PHP Based Web Application
Making Of PHP Based Web ApplicationMaking Of PHP Based Web Application
Making Of PHP Based Web Application
 
Server and Client side comparision
Server and Client side comparisionServer and Client side comparision
Server and Client side comparision
 
Web development using ASP.NET MVC
Web development using ASP.NET MVC Web development using ASP.NET MVC
Web development using ASP.NET MVC
 
Scripting Languages
Scripting LanguagesScripting Languages
Scripting Languages
 
Webdevelopment
WebdevelopmentWebdevelopment
Webdevelopment
 
Web Development Presentation
Web Development PresentationWeb Development Presentation
Web Development Presentation
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp Net
 
Servlet programming
Servlet programmingServlet programming
Servlet programming
 
Web Browsers.pptx
Web Browsers.pptxWeb Browsers.pptx
Web Browsers.pptx
 
Asp.netrole
Asp.netroleAsp.netrole
Asp.netrole
 
Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web application
 
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...
 
sell idea
sell ideasell idea
sell idea
 

More from baabtra.com - No. 1 supplier of quality freshers

More from 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
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 

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. Server Side Scripting Vineeth Menon vineethmenon18@gmai.com
  • 4. Static Web Pages 1. Client requests page Internet 2. Web server sends the HTML file to the client Client Machine Web Server 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 • These types of websites rely on dynamic content so cannot be served by static pages. They need to be able to display content taken from a database or other source. • This is where server-side scripting is needed.
  • 5. Dynamic Web Pages The Google homepage could be considered static because it has a Static fixed layout and content. It does not change. A search 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 Google would have to create a static results page in advance for every single possible search. Dynamic The user never sees the work a script does, only the end result it send back to their web browser.
  • 6. 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.
  • 7. Scripting Languages You can sometimes tell which scripting language a website is using by looking at the address bar. Text after a question mark in an address is parameters and variables sent to the script. Some website developers choose to design their sites in a way that hides evidence of server-side scripting. They do this by telling the web server to use the scripts while hiding or changing the text in the address bar. This is usually just to tidy the appearance or shorten the length of the address bar, making it easier to read or copy.
  • 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.
  • 9. Databases One of the most useful features of nearly all of the scripting languages is their ability to enter and retrieve information from a database. Like scripting languages, there are many free and commercial database applications available. Some are designed to be used by small websites (such as MySQL) whereas others (eg. Oracle) are very powerful, have dedicated servers and are used by large companies and organisations. Scripts interact with databases using Structured Query Language (SQL). This is a very simple text language that allows nearly any script to communicate with nearly any database, practically eliminating any compatibility issues. This also allows a website developer to change/upgrade the database application their website uses with minimal changes to their code. A website script can change the data in a database as well as retrieving it.
  • 10. Scripts & Databases 1. Server receives request for web page 2. Server begins to run script 1. Client requests page 3. Script requests data from Internet the database using SQL 4. Script processes the 6. Completed HTML sent to client returned data and formats it as needed 5. Script builds the HTML [ Oracle / Web Server code to create the MySQL / requested page PostgreSQL ] Client Machine Database With Web Browser 6. Completed HTML page sent back to the client’s web browser [ ASP / PHP / Ruby ] Script • Again, the script on the server is generating all of the HTML code, but this time it is getting some content of the page from a database. As far as the web browser (and the user) is concerned, all they see is the end result, a completed web page. • The script requests the raw data it needs from the database using Structured Query Language (SQL). The database immediately returns the data requested by the script. • Now that the script has the data it needs, it can build the HTML code to send back to the client.