User's Manual
Overview of the Sample Application
1-2 Oracle Database Express Edition 2 Day Plus PHP Developer Guide Beta Draft
6.
Uploads and displays employee photographs
Figure 1-1 shows the relationship between the files developed for this application:
Figure 1–1 Functionality in the Sample PHP Application
The sample application files are:
anyco.php
This file has the main logic for the AnyCo application. It contains control logic to
decide which page is displayed. It manages session data for navigation. The
functionality in anyco_cn.inc, anyco_db.inc , and anyco_ui.inc is used by it.
anyco_ui.inc
This file contains the functions used for presentation of data and forms in a HTML
page.
anyco_cn.inc
This file contains definitions for database connection information: the database
username, password, and database connect identifier.
anyco_db.inc
This file contains database logic to create connections, execute queries, and execute
data manipulation statements.
anyco_im.php
This file contains logic to retrieve an image from a database column and send it to a
browser for display as a JPEG image.
style.css
This file contains Cascading Style Sheet definitions for various HTML tags generated
by the application. It manages the look and feel of the application.
Files with the suffix .inc are PHP code files included in other PHP files.
Files with the suffix .php can be loaded in a browser.
You can create and edit the PHP application source files in a text editor or any tool that
supports PHP development.