INFM 603: Information Technology and Organizational Context Jimmy Lin The iSchool University of Maryland Thursday, October 18, 2012 Session 7: PHP.

Slides:



Advertisements
Similar presentations
PHP I.
Advertisements

INFM 603: Information Technology and Organizational Context Jimmy Lin The iSchool University of Maryland Thursday, September 19, 2013 Session 3: JavaScript.
Adding Dynamic Content to your Web Site
LBSC 690 Session #7 Structured Information: Databases Jimmy Lin The iSchool University of Maryland Wednesday, October 15, 2008 This work is licensed under.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
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.
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
Cloud Computing Lecture #7 Introduction to Ajax Jimmy Lin The iSchool University of Maryland Wednesday, October 15, 2008 This work is licensed under a.
PHP Scripts HTML Forms Two-tier Software Architecture PHP Tools.
LBSC 690 Session #8 SQL and Web Applications Jimmy Lin The iSchool University of Maryland Wednesday, October 22, 2008 This work is licensed under a Creative.
Multiple Tiers in Action
Apache Tomcat Server Typical html Request/Response cycle
PHP Scripts HTML Forms Two-tier Software Architecture PHP Tools.
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.
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.
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.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
INFM 603: Information Technology and Organizational Context Jimmy Lin The iSchool University of Maryland Wednesday, March 26, 2014 Session 8: Ajax and.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
NETWORK CENTRIC COMPUTING (With included EMBEDDED SYSTEMS)
Introduction to PHP and Server Side Technology. Slide 2 PHP History Created in 1995 PHP 5.0 is the current version It’s been around since 2004.
Advanced Web 2012 Lecture 4 Sean Costain PHP Sean Costain 2012 What is PHP? PHP is a widely-used general-purpose scripting language that is especially.
Server-side Scripting Powering the webs favourite services.
IDK0040 Võrgurakendused I harjutus 06: PHP: Introduction Deniss Kumlander.
INTERNET APPLICATION DEVELOPMENT For More visit:
JavaScript is a client-side scripting language. Programs run in the web browser on the client's computer. (PHP, in contrast, is a server-side scripting.
SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building Assignment.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
1 Welcome to CSC 301 Web Programming Charles Frank.
Variables and ConstantstMyn1 Variables and Constants PHP stands for: ”PHP: Hypertext Preprocessor”, and it is a server-side programming language. Special.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Introduction to PHP Advanced Database System Lab no.1.
Introduction to Web Programming. Introduction to PHP What is PHP? What is a PHP File? What is MySQL? Why PHP? Where to Start?
Overview Web Session 3 Matakuliah: Web Database Tahun: 2008.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
PHP Open source language for server-side scripting Works well with many databases (e.g., MySQL) Files end in.php,.php3 or.phtml Runs on all major platforms.
Case Study Dynamic Website - Three Tier Architecture
Web Architecture Introduction
הרצאה 4. עיבוד של דף אינטרנט דינמי מתוך Murach’s PHP and MySQL by Joel Murach and Ray Harris.  דף אינטרנט דינמי משתנה עפ " י הרצת קוד על השרת, יכול להשתנות.
Web Security Lesson Summary ●Overview of Web and security vulnerabilities ●Cross Site Scripting ●Cross Site Request Forgery ●SQL Injection.
The basics of knowing the difference CLIENT VS. SERVER.
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 2: Introduction to IS2803 Rob Gleasure
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
PHP Syntax You cannot view the PHP source code by selecting "View source" in the browser - you will only see the output from the PHP file, which is plain.
1 PHP Intro PHP Introduction After this lecture, you should be able to: Know the fundamental concepts of Web Scripting Languages in general, PHP in particular.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
PHP and SQL Server: Connection IST 210: Organization of Data IST2101.
Class02 Introduction to web development concepts MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/14/2016.
PHP using MySQL Database for Web Development (part II)
Introduction to Dynamic Web Programming
Introduction to web development concepts
Content Management Systems
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
PHP / MySQL Introduction
PHP Introduction.
Database Driven Websites
PHP + Oracle = Data-Driven Websites
Web Browser server client 3-Tier Architecture Apache web server PHP
Tutorial 6 PHP & MySQL Li Xu
MySQL Web Application Connecting to a MySQL database
Hypertext Preprocessor
Presentation transcript:

INFM 603: Information Technology and Organizational Context Jimmy Lin The iSchool University of Maryland Thursday, October 18, 2012 Session 7: PHP

Databases Yesterday…

Databases today… Wait, but these are websites?

Websites that are really databases Most of the content is in a database Web pages are dynamically constructed from results of database queries

Multi-Tiered Architectures Browser Database Browser Client Server Web Server “Middleware” Web Server Database

Putting the Pieces Together… Web Server HTML CGI Browser SQL query Results Database (MySQL) PHP

What is PHP? PHP is a server-side scripting language Must run on a server (not in the browser) More specifically, runs inside the web server Typical PHP script: Fetches input from user forms Executes SQL queries Constructs an HTML page containing results Part of the “LAMP” stack Linux, Apache, MySQL, PHP

PHP Scripts Are just like normal HTML pages With the exception of code between Variables begin with dollar signs E.g., $a, $b Use “echo” to output HTML Just like document.writeln(…) in JavaScript Use “.” to concatenate string E.g., “here is”. “ some text” Just like “here is” + “ some text” in JavaScript

Sample PHP Script 1. Get input from user from 2. Connect to the database 3. Execute SQL query 4. Process results to generate HTML

RideShare Exercise Design a database to match drivers with passengers for ride sharing on long car trips: Drivers post available seats; they want to know about interested passengers Passengers come looking for rides: they want to know about available rides and can make reservations These things happen in no particular order To simplify, passengers don’t get to post “rides wanted” ads Build a web application to accomplish the above

RideShare Exercise: Tasks Design the tables you will need First decide what information you need to keep track of Then design tables to capture this information Design SQL queries What happens when a passenger comes looking for a ride? What happens when a driver comes to find out who the passengers are? Role play!