PHP-CH1&2 - PHP 1 PHP Topics Introducing Three-Tier...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
1 PHP
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Topics Introducing Three-Tier Architectures Introducing PHP Basic Features Variables and Constants Expressions and Operators Type Conversion Conditions and Branches Loops Arrays User-Defined Functions Objects PHP
Background image of page 2
3 Introducing Three-Tier Architectures Most web database applications bring together the Web and databases through three layers of application logic naming three-tier architecture: At the base of an application is the database tier , consisting of the database management system that manages the database containing the data users create, delete, modify, and query. Built on top of the database tier is the complex middle tier , which contains most of the application logic and communicates data between the other tiers. On top is the client tier , usually web browser software that interacts with the application. Figure 1-1. PHP
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Introducing Three-Tier Architectures PHP
Background image of page 4
5 Introducing Three-Tier Architectures Client Tier The client tier in the three-tier architecture model is usually a web browser. Web browser software: » Processes and displays HTML resources » Issues HTTP requests for resources » Processes HTTP responses There are significant advantages to using a web browser as the thin-client layer » Easy deployment » Support on a wide range of platforms PHP
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 Introducing Three-Tier Architectures Middle Tier In most three-tier web database systems, the majority of the application logic is in the middle tier. » it drives the structure and content of the data displayed to the user » it processes input from the user as it is formed into queries on the database to read or write data. » It also adds state management to the HTTP protocol. » It integrates the Web with the database management system. the components of the middle tier are » a web server » a web scripting language » the scripting language engine PHP
Background image of page 6
7 Introducing Three-Tier Architectures The PHP scripting language is used as the middle-tier scripting language. PHP has emerged as a component of many medium- and large-scale web database applications. there are many reasons that make PHP a good choice, including: » PHP is open source, meaning it is entirely free. » One or more PHP scripts can be embedded into static HTML files and this makes client-tier integration easy. » Fast execution of scripts. » Platform and operating-system flexibility. » PHP is suited to complex systems development. It is a fully featured programming language. PHP
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8 Introducing Three-Tier Architectures Database Tier The database tier is the base of a web database application. In a three-tier architecture application, the database tier manages the data. In many web database applications, data
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 59

PHP-CH1&2 - PHP 1 PHP Topics Introducing Three-Tier...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online