CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming.

Slides:



Advertisements
Similar presentations
IS 6116 Introduction – 10 Jan Lecturer Details Aonghus Sugrue Website: aonghussugrue.wordpress.com
Advertisements

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.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
Server-Side vs. Client-Side Scripting Languages
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.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
1 CS6320 – Why Servlets? L. Grewe 2 What is a Servlet? Servlets are Java programs that can be run dynamically from a Web Server Servlets are Java programs.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
INTRO TO MAKING A WEBSITE Mark Zhang.  HTML  CSS  Javascript  PHP  MySQL  …That’s a lot of stuff!
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
Web Page A page displayed by the browser. Website Collection of multiple web pages Web Browser: A software that displays web pages on client computer.
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
The PHP Story. PHP Story PHP is a programming language. Incorporate(join) sophisticated business logic. Widely used general purpose scripting language.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
1 Web Servers (IIS and Apache) Outline 9.1 Introduction 9.2 HTTP Request Types 9.3 System Architecture 9.4 Client-Side Scripting versus Server-Side Scripting.
Intro to PHP Introduction to server-side scripts (It’s all good :D) © TAFE NSW
INTRODUCTION TO WEB DATABASE PROGRAMMING
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
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.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Server-side Scripting Powering the webs favourite services.
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.
IDK0040 Võrgurakendused I harjutus 06: PHP: Introduction Deniss Kumlander.
Introduction to Internet Programming (Web Based Application)
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
Fundamentals of Database Chapter 7 Database Technologies.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
CGI Common Gateway Interface. CGI is the scheme to interface other programs to the Web Server.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Web Architecture Introduction
WEB DEVELOPMENT WITH PHP/MYSQL. WEB DEVELOPMENT COURSE HAS DIFFERENT NAME IN DIFFERENT INSITUTES, THIS IS A CORE COURSE FOR BS/MS STUDENTS. THIS IS ALSO.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
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.
Introduction and Principles Web Server Scripting.
PHP Introduction PHP is a server-side scripting language.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
JavaScript and Ajax (Internet Background) Week 1 Web site:
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
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.
ASP.NET WEB Applications. ASP.NET  Web application framework developed by Microsoft  Build dynamic data driven web applications and web services  Subset.
PHP stands for …….. “PHP Hypertext Pre-processor” and is a server-side scripting language like ASP. PHP scripts are executed on the server PHP supports.
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative.
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.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
PHP using MySQL Database for Web Development (part II)
CGS 3066: Web Programming and Design Spring 2017
Introduction to Dynamic Web Programming
Introduction and Principles
Developing Web-Based Applications
PHP / MySQL Introduction
PHP and Forms.
Intro to PHP.
Introduction to PHP.
Web Servers (IIS and Apache)
PHP By Prof. B.A.Khivsara Note: The material to prepare this presentation has been taken from internet and are generated only for students reference and.
Web Application Development Using PHP
Presentation transcript:

CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming

Static Web Page Up until now, all our efforts have been put to design “static” pages only: 1. Client requests URL: 2. Browser finds the IP address of server: http://ww2.cs.fsu.edu 3. Browser sends HTTP request to GET /~mollah/path/to/webpage.html/~mollah/path/to/webpage.html 4. The server finds the “document root” of its user “mollah”: /home/grads/mollah 5. Appends the remaining URL with document root to obtain filename /home/grads/mollah/path/to/webpage.html 6. Returns file content(HTML,CSS,Javascript) as HTTP Response to client -exactly as the programmer wrote

Dynamic Web Pages Server responds “dynamically“ Returns different client-side code depending on the situation Example: GET Server determines the user through authentication (facebook login ID and password) Looks up user-specific information(e.g. wall posts, inbox, chat history) from database Generates Client side code(HTML+CSS+Javascript) to containing these content Returns dynamically generated contents as HTTP response Requires programming logic on the Server Side!

Server Side Technologies: HTTP Servers Software Responsible for handling HTTP requests, invoke server side programming Apache: the most popular web server software Free and Open-source Supports a wide variety of server-side technologies Internet Information Services(IIS): Popular web server created by Microsoft Created for use with windows NT/server Better suited for (and heavily dependent on) Windows technologies,

Server Side Technologies: Databases A number of Relational database management systems(RDBMS) are currently in use: Uses SQL (Structured Query language) to manage(insert/update/search) data Server-Client Architecture: Oracle: Proprietary, most widely used in medium and large businesses SQL Server : Proprietary RDBMS from Microsoft MySQL (open source) : most popular open-source database PostgreSQL(open source): powerful, SQL standard compliant RDBMS Serverless Architechture: SQLite: lightweight, embedded SQL database engine. Stores database in a file

Server Side Programming:CGI Stands for “Common Gateway Interface” Pass HTTP request and parameters to an executable (called “CGI scripts”) Executable returns dynamically generated web content Pros: CGI scripts can be written in any language(Perl, C/C++,Python, Bash script) Cons: Slow, Resource Intensive scripts may contain exploitable bugs, remote user may end up executing commands on the server

Server Side Programming: ASP.NET “Active Server Page”, part of.NET framework developed by Microsoft Supports visual editing (drag and drop web controls).NET framework supports many programming languages such as Visual basic, C++, C#,J# Used to run on Windows only, currently being extended into a cross- platform framework

Server Side Programming: PHP Acronym for “PHP: Hypertext Preprocessor” Open-source language for server-side scripting Easy, yet powerful tool for writing dynamic web pages quickly Relatively flat learning curve Free! Efficient alternative to competitors such as Microsoft's ASP.NET All major content management sytems currently in use (WordPress, Drupal, Joomla) are written in PHP Also facebook.com, yahoo.com, Wikipedia.org, sourceforge.net!

PHP Sneak peek Pages with PHP scripts are saved with.php extension If an http request is for a file with.html extension, server simply returns that file However, If the request is for a.php file: Server reads the file to see if any script code (PHP) is embedded in it If there is PHP code, server executes the code and sends whatever is generated PHP code snippets are interspersed within HTML content PHP code begins with Let’s try ”Hello world” with PHP!

Learning Server-Side programming Unlike HTML, CSS and Javascript, Server-side scripts cannot be tested on browser Must run on a server (therefore called “server-side”) ww2 server runs Apache HTTP server with PHP MySQL databases may only be created on the DB server(dbsrv.cs.fsu.edu). Contact systems group(again!!) to get access to dbsrv. SQLite may be used on ww2 server space Will be discussed in due time

Learning Server-Side programming Alternatively, you can set up your own HTTP server(Apache), database(MySQL/SQLite) and scripting language(PHP) on your computer! Individual installing and configuration can be too tedious Solution: Use prepackaged software bundle: WampServer: (A)pache, (M)ySQL, (P)HP bundle for (W)indows platform MAMP: My Apache - MySQL – PHP For OS X and Windows Ampps: Cross platform(available for windows, MAC OS X and Linux)