CGS 3066: Web Programming and Design Spring 2017

Slides:



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

DT211/3 Internet Application Development Active Server Pages & IIS Web server.
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.
Multiple Tiers in Action
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
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.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
INTRO TO MAKING A WEBSITE Mark Zhang.  HTML  CSS  Javascript  PHP  MySQL  …That’s a lot of stuff!
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
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.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
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.
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.
Introduction to Internet Programming (Web Based Application)
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
INTRODUCTION TO WEB APPLICATION Chapter 1. In this chapter, you will learn about:  The evolution of the Internet  The beginning of the World Wide Web,
Web Architecture Introduction
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
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
 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.
CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming.
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)
Introduction to Internet Programming (Web Based Application)
Web Programming Language
Distributed Control and Measurement via the Internet
Top 8 Best Programming Languages To Learn
Introduction to Dynamic Web Programming
Section 6.3 Server-side Scripting
Introduction and Principles
Server-Side Application and Data Management IT IS 3105 (Spring 2010)
Developing Web-Based Applications
PHP PHP PHP STAND FOR HYPERTEXT PRE-PROCESSOR. PHP PHP PHP STAND FOR HYPERTEXT PRE-PROCESSOR.
PHP / MySQL Introduction
PHP Introduction.
Department of Computer Science, Florida State University
Information system Management
PHP and Forms.
IntroductionToPHP Static vs. Dynamic websites
Intro to PHP.
Tutorial 6 PHP & MySQL Li Xu
Introduction to PHP.
PHP an introduction.
Client-Server Model: Requesting a Web Page
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 2017 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: http://ww2.cs.fsu.edu/~kanel/ 2. Browser finds the IP address of http://ww2.cs.fsu.edu server: 128.186.122.20 3. Browser sends HTTP request to 128.186.122.20 GET 4. The server finds the “document root” of its user “kanel”: /home/grads/kanel 5. Appends the remaining URL with document root to obtain filename /home/grads/kanel/public_html/index.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 www.facebook.com/ 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 <?php and ends 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(dbsrv2.cs.fsu.edu). Contact systems group(again!!) to get access to dbsrv if you haven’t done that already.

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: http://www.wampserver.com/en/ (A)pache, (M)ySQL, (P)HP bundle for (W)indows platform MAMP: https://www.mamp.info/en/downloads/ My Apache - MySQL – PHP For OS X and Windows Ampps: http://www.ampps.com/downloads Cross platform(available for windows, MAC OS X and Linux)