Server side scripting

  • View

  • Download

Embed Size (px)


Server side scripting, Languages used for server side scripting

Text of Server side scripting

  • 1.Disclaimer: This presentation is prepared by trainees ofbaabtra as a part of mentoring program. This is notofficial document of baabtra Mentoring PartnerBaabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .Ltd

2. What is server side scripting?Different programming languages used in server side scriptingNiyaz Kannancheryniyazofficial@gmail.comtweetboyniyazsky9746049 048 3. A Simple Web Request: 1 - Request an HTML PageWebBrowser4 - Present HTML ContentWeb3 - Return HTML to BrowserServer HTML 2 - Retrieve requested HTML 4. Static Web Pages 1. Client requests pageInternet 2. Web server sends the HTML file to the clientWeb Server Client MachineWith 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 5. Dynamic Web Pages The facebook homepage could beStatic WebPageconsidered static because it has afixed layout and content. It does notchange. After Login results page however isdynamic. This means its contentcan be changed. The only practical way to create thispage is by using a script, otherwisefacebook would have to create aDynamic WebPagestatic results page in advance forevery single possible search. The user never sees the work ascript does, only the end result itsend back to their web browser. 6. What is server side scripting? Its a technique used in web development,which involves embedding scripts inan HTML source code, which results in ausers (clients) request to the server websitebeing handled by a script running server-side, before the server responds to theclients request. 7. How Scripting Languages WorkServer runs scriptClient requests page [ ASP / PHP / Ruby ] Script InternetScript buildsCompleted HTML sent to clientHTML code Web Server HTML ready to send HTML Code Client MachineWith 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 servers 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 thetwo.z 8. Scripting Languages A script creates what appears to be a static web page using contentgenerated or read from a data source. There are many scripting languages, made by different companies andorganisations. 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 thereare no compatibility issues with clients web browsers. The client only ever sees the final HTML generated by the script and notthe script itself. Scripts often finish running in several milliseconds. Most web servers canrun many scripts simultaneously with a minimal performance hit. 9. scripting languages with extensionASP (*.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 ScriptingPython, e.g. via Django (*.py)Ruby, e.g. Ruby on Rails (*.rb, *.rbw)SMX (*.smx)Lasso (*.lasso)WebDNA (*.dna,*.tpl)Progress WebSpeed (*.r,*.w) 10. HISTORY Server-side scripting was first used inearly 1995 by Fred DuFresne whiledeveloping the first web site for Boston,MA television station WCVB. In the earlier days of the web, server-sidescripting was almost exclusivelyperformed by using a combinationof C programs, Perl scripts, and shellscripts using the Common GatewayInterface(CGI). Those scripts wereexecuted by the operating system. Many modern web servers can directlyexecute on-line scripting languages suchas ASP and PHP either by the web serveritself or via extension modules 11. QUESTIONS SECTION 12. If this presentation helped you, please visit our page and like it. Thanks in | | 13. Contact Us