PHP: includes MIS 3501 Jeremy Shafer Department of MIS

Slides:



Advertisements
Similar presentations
PHP and CSS to control web apps styles. CSS is used to style today’s web applications.
Advertisements

Class03 Introduction to Web Development with PHP MIS 3501, Fall 2015 Brad Greenwood, PhD MBA Department of MIS Fox School of Business Temple University.
Class11 Introduction to relational databases and MySQL MIS 3501, Fall 2015 Brad Greenwood, PhD MBA Department of MIS Fox School of Business Temple University.
Class06 Conditional Statements MIS 3501, Fall 2015 Brad Greenwood, PhD MBA Department of MIS Fox School of Business Temple University 9/10/2015 © 2014,
Course Introduction MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/12/2016.
Class03 Introduction to Web Development (Hierarchy and the IDE) MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
Class02 More Arrays MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/14/2016.
Sessions and cookies (part 2) MIS 3501, Fall 2015 Brad N Greenwood, PhD Department of MIS Fox School of Business Temple University 11/19/2015.
Form Data (part 2) MIS 3502, Fall 2015 Brad N Greenwood, PhD Department of MIS Fox School of Business Temple University 11/10/2015 Slide 1.
Form Data (part 1) MIS 3502, Fall 2015 Brad Greenwood, PhD Department of MIS Fox School of Business Temple University 11/10/2015.
Introduction to AJAX MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/4/2016.
Class07 PHP: loops and includes MIS 3501, Fall 2015 Brad Greenwood, PhD MBA Department of MIS Fox School of Business Temple University 9/15/2015.
Class05 How to get data from a form MIS 3501, Fall 2015 Brad N Greenwood, PhD MBA Department of MIS Fox School of Business Temple University 9/8/2015.
Class02 Introduction to web development concepts MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/14/2016.
Sessions and cookies MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 4/12/2016.
PDO Database Connections MIS 3501, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 3/8/2016.
Course Introduction MIS 3501, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 8/30/2016.
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
PDO Database Connections
Class03 Introduction to Web Development (Hierarchy and the IDE)
Brad N Greenwood, PhD MBA
Sessions and cookies MIS 3501 Jeremy Shafer Department of MIS
Form Data (part 2) MIS 3502, Fall 2015 Jeremy Shafer Department of MIS
Web Technologies Computing Science Thompson Rivers University
Introduction to Dynamic Web Programming
Organize your code with MVC
Introduction to web development concepts
Introduction to Web Development (Part 2)
Using the HTML and CSS Validation Services
Course Introduction MIS 3501 Jeremy Shafer Department of MIS
Course Introduction MIS 3501 Jeremy Shafer Department of MIS
Sessions and cookies (part 2)
Form Data (part 1) MIS 3502, Fall 2015 Jeremy Shafer Department of MIS
Class07 PHP: loops and includes
PDO Database Connections
Unit 4 – Functions and Include Files
How to get data from a form
PDO Database Connections: Getting data out of the database
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
Introduction to JavaScript
Web Systems & Technologies
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
PDO Database Connections: Getting data out of the database
Form Data (part 2) MIS 3501 Jeremy Shafer Department of MIS
A second look at JavaScript
Course Introduction MIS 3501 Jeremy Shafer Department of MIS
PDO Database Connections
Organize your code with MVC
Introduction to relational databases and MySQL
Sessions and cookies (part 1)
PDO Database Connections
Form Data (part 2) MIS 3501 Jeremy Shafer Department of MIS
Class07 PHP: loops MIS 3501 Jeremy Shafer Department of MIS
Class05 How to get data from a form
MySQL Backup, Transfer and Restore
HTML5 APIs MIS3502 Jeremy Shafer Department of MIS
JavaScript and the DOM MIS 2402 Jeremy Shafer Department of MIS
Sessions and cookies MIS 3501 Jeremy Shafer Department of MIS
Programming Control Structures with JavaScript Part 2
Class11 Introduction to relational databases and MySQL
Loops and Arrays in JavaScript
Form Data (part 1) MIS3501 Jeremy Shafer Department of MIS
Introduction to JavaScript
Introduction to MIS3502 MIS 3502 Jeremy Shafer Department of MIS
MVC – Model View Controller
Web Technologies Computing Science Thompson Rivers University
Client-Server Model: Requesting a Web Page
Single Page Architecture (SPA)
Presentation transcript:

PHP: includes MIS 3501 Jeremy Shafer Department of MIS Fox School of Business Temple University

Course Overview We are here... MySQL To do: 2 Weeks We are here... HTML & CSS 2 Weeks PHP 3 Weeks PDO 2 weeks To do: Organize your code with MVC (1 week) Work with forms (1 week) Use cookies and sessions (1 week)

(Some assembly required) Server-Side Includes (Some assembly required)

Built-in functions used to assemble content from different files. The include and require functions are similar. They both inject content from another file into the current PHP page. The require function is the more strict of the two. If the file is not found, an warning is displayed and further processing of the page stops. Include let’s processing continue, but with a warning. These functions are just like their cousins above. They silently prevent the same content from being injected over and over again. The exit and die functions do exactly the same thing: completely terminate further processing of the php page.

Moving up and down the hierarchy of our server’s file system Sometimes we choose to assemble our page based on one or more conditions. Moving up and down the hierarchy of our server’s file system

Let’s take a look at… (data) include_exercise.zip With it we can illustrate: The difference between: include, require, include_once, require_once How include can be used to assemble a web page from multiple child pages How a variables can become available on multiple pages when included (presentation)