WHAT IS SERVER SIDE SCRIPTING? Server-side scripting is a web server technology in which a user's request is verified by running a script directly on the.

Slides:



Advertisements
Similar presentations
HTTP Request/Response Process 1.Enter URL ( in your browser’s address bar. 2.Your browser uses DNS to look up IP address of server.com.
Advertisements

Languages for Dynamic Web Documents
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
Server-Side vs. Client-Side Scripting Languages
1 Chapter 12 Working With Access 2000 on the Internet.
What is it? –Large Web sites that support commercial use cannot be written by hand What you’re going to learn –How a Web server and a database can be used.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
Website Development with PHP and MySQL Introduction.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Web Programming Introduction to PHP COM Objectives To understand what PHP is and how a PHP script works with a Web Browser and a Web Server To learn.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
ECA 228 Internet/Intranet Design I Intro to the Web.
Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
CSC 318 WEB APPLICATION DEVELOPMENT.  Introduction to Server Scripting language  Client VS Server  Introduction to PHP  PHP Files and Syntax  Function.
How the Web Works. WWW – part of the Internet (others: , FTP, Telnet) Loaded to a Server | Viewed in a Browser (Client) Client: Request & Render.
INTRODUCTION TO WEB DATABASE PROGRAMMING
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
CSS Class 6 Make image into a button Create button with button element Group related form elements Control tab order Process form data.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
1 Welcome to CSC 301 Web Programming Charles Frank.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
Web Development Process The Site Development Process Site Construction is one of the last steps.
By Tharith Sriv. To write a web page you use: HHTML (HyperText Markup Language), AASP (Active Server Page), PPHP (HyperText Preprocessor), JJavaScript,
CITA 310 Section 7 Installing and Testing a Programming Environment (Textbook Chapter 7)
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Introduction and Principles Web Server Scripting.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 10: Internet Information Services (IIS)
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
Overview Web Technologies Computing Science Thompson Rivers University.
1 LM 6 Database Applications Dr. Lei Li. Learning Objectives Explain three components of a client-server system Describe differences between a 2-tiered.
CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Web Programming Language
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
WWW and HTTP King Fahd University of Petroleum & Minerals
Introduction and Principles
Introduction to PHP FdSc Module 109 Server side scripting and
PHP / MySQL Introduction
Database Driven Websites
Chapter 27 WWW and HTTP.
IntroductionToPHP Static vs. Dynamic websites
Web Application Development Using PHP
Presentation transcript:

WHAT IS SERVER SIDE SCRIPTING? Server-side scripting is a web server technology in which a user's request is verified by running a script directly on the web server to generate dynamic web pages. (

STATIC WEB PAGES The server contains.HTML files These are served to the client browser on request The local browser may have some interaction via client-side scripting (JavaScript) The HTML pages are fixed and cannot be altered to match individuals requests HTML pages are generated when they are requested The basic page is done in a scripting language and uses HTML and CSS to determine static content and appearance The variable data is generated by scripts (an interpreted program) running on the web server DYNAMIC PAGES

DYNAMIC MODEL List generated by scripts Clicking here will run a script using the new parameters to generate a new list Clicking here will run a script to add the product to a basket and update the basket status on this page

USES It is used to create dynamic web pages Unlike client side scripting, the code is secure as it cannot be viewed on the client Updating databases Interacting with forums Gathering user statistics Managing profiles Blogging Sharing (upload to Web 2.0 applications)

Client-sideServer-side HOW DOES IT WORK? User visits a website Request recieved by web server Server scripts (e.g. PHP) are processed Web page (now HTML) sent to client (user) Web page displayed on your screen (any client side scripts, e.g. JavaScript, can be processed here) Interpretter – script output to HTML

ASP Active Server Pages (ASP) a server-side scripting environment from Microsoft Uses a file extension of.asp. Scripts are usually written in VBScript ASP will normally run only on Microsoft servers COLDFUSION MARKUP LANGUAGE - CFML A scripting language originally introduced by Adobe Systems in 1995 Enables web developers to embed database commands and other server- side scripting elements within standard HTML or XHTML Pages in a ColdFusion web application are pre-processed by the ColdFusion Application Server when requested by a client browser

JAVASERVER PAGES (JSP) A Java technology similar to ASP Used to create dynamically generated web pages by embedding Java programming code in HTML or XHTML documents A JavaServerPage is compiled into a Java servlet by an application server, rather than being interpreted (a servlet is a Java program that executes on the server to create dynamic web pages). PERL A high-level, interpreted programming language a procedural programming language loosely based on C Used for the creation of web applications, especially those where database access is required. Perl is free software

ASP.NET a widely-used scripting language PHP is free software released PHP code can be embedded into HTML or XHTML documents It is executed on the server to generate dynamic web content. PHP is frequently used together with MySQL database language Uses the Apache web server The successor to Microsoft's ASP Allows programmers to create web applications using any scripting or programming language supported by the.NET Framework. The main building blocks are pages known as web forms, which contain definitions for server-side Web Controls and User Controls, Web forms have the file extension.aspx Uses the IIS Web Server PHP

RUBY ON RAILS “Ruby on Rails is a breakthrough in lowering the barriers of entry to programming. Powerful web applications that formerly might have taken weeks or months to develop can be produced in a matter of days.” -Tim O'Reilly, Founder of O'Reilly Media “Web development that doesn’t hurt Ruby on Rails® is an open-source web framework that’s optimized for programmer happiness and sustainable productivity, It lets you write beautiful code by favouring convention over configuration.”

WHAT WE WILL USE FOR THIS UNIT Web server scripts written in PHP Database commands written in SQL (structured query language) Client scripts written in JavaScript Apache Web server MySQL database managed with PHPMyAdmin PHP interpreter add on to Apache

COLLEGE SET UP Each student login has A folder for storing the web site MySQL PHP FTP access Apache HTTP and FTP access to a local web server (ictweb) For the web server you can use WAMP “WAMP” = Windows, Apache, MySQL and PHP Other alternatives to WAMP include XAMPP

TOOLS Your choice of browser Firefox, Chrome, Internet Explorer, Safari, Opera Contextual editors Notepad++ ConTEXT Dreamweaver (use source code editor) GEDIT (Linux) FTP Clients Filezilla, CoreFTP, Dreamweaver (built in client FTP) Windows File Explorer

A SIMPLE PHP SCRIPT Today’s Date <meta http-equiv="content-type“ content="text/html; charset=utf-8"/> Today’s date (according to this web server) is <?php echo date('l, F dS Y.'); ?> <?PHP is the opening tag (?> is the closing tag) Using the PHP date function to get the date set on the server and echo it to the screen

Practicalities Use an FTP client to create a subdirectory on your student account (this can also be done in Dreamweaver) Use a contextual editor (e.g. Notepad++ or Dreamweaver) to create the file we just used and save it with a file type of.php (e.g. date.php) in the subdirectory Access it using your browser, use the following URL (locate your folder and work) Make sure it works

RESULTS PHP in editor, PHP viewable Web page opened in Firefox, and right-clicked to view source

CLIENT SIDE AND SERVER SIDE Client side Reduces web traffic as processing done on client Good for Form validation User aids (drop downs, hover etc) Local navigation Server side Can use centralised server resources eg databases No client plug-ins required, runs in any browser No load on client, can use powerful server hardware Applications do not need distributing

COMBINED USE Build efficient applications Choose to do the processing in the most appropriate location Choose where to keep up to date multi use data Choose how to optimise the user experience: Performance Appearance Function

SUMMARY: WEB SERVER SCRIPTING ADVANTAGES Processed (interpreted) on web server (server side) therefore less demand on the client side. Code is more secure (run on server not the client) Page content can be live and changeable DISADVANTAGES Web pages can be slower to display as scripts have to be processed on the server first Requires a web server to be installed and configured, in order to run scripts such as PHP Few debugging tools, design interfaces are not user friendly

ACTIVITY Set up a new site in Dreamweaver (e.g. name: php). Locate your folder structure on the ICTWEB server, e.g. The new site window (Dreamweaver): Local folder Server folder

ACTIVITY (CONTINUED) Using the exercise sheet follow the examples and create your own: Create 5 examples of using the echo() statement Embed PHP code into HTML Save a web page as a PHP file Right click a web page and view source, comparing with PHP