Introduction to PHP - Eastern Illinois University

Download Report

Transcript Introduction to PHP - Eastern Illinois University

PHP With Oracle 11g
XE
By
Shyam Gurram
Eastern Illinois University
Agenda
•
•
•
•
•
•
Overview of PHP and Oracle Web Programming.
Introduction of PHP.
PHP Engine Architecture.
Functionality of PHP.
Oracle 11g XE (Express Edition).
Zend Server.
Overview of PHP and Oracle Web
Programming
• What is PHP?
PHP is a recursive acronym for “PHP: Hypertext Preprocessor”. It is
widely-used open source, scripting language that is especially suited for web
development and can be embedded into HTML.
• PHP is a server-side scripting language
• PHP scripts are executed on the server
Introduction of PHP
• PHP is open source software.
• PHP is free to download and use.
• PHP supports many databases (MySQL, Informix, Oracle, Generic ODBC, etc.).
• PHP runs on different platforms (Windows, Linux, Unix, etc.)
• PHP is compatible with almost all servers used today (Apache, IIS, etc.)
• We are using Zend server, Oracle 11g XE (Express Edition) for the PHP application
Development.
PHP Engine Architecture.
• In the simplest architecture, you place the Apache server, PHP engine, and
oracle database on a single platform. Assuming this simple model, the
customer request goes to the Apache server, which hands off the dynamic
calls to the PHP engine. The PHP engine supports the scope of execution
of PHP script, which can call the Oracle database server. The call from the
PHP script is made through the Oracle call interface 8 (OCI8). When the
database finishes processing the request, the PHP script then writes a
temporary document that is served back to the original client.
Functionality of PHP
• PHP code is executed on the
server, generating HTML which
is then sent to the client. The
client would receive the results
of running that script, but
would not know what the
underlying code was.
Oracle 11g XE (Express Edition)
Oracle Database XE is a great database for:
• Developers using PHP, Java, .NET, XML, or other language to interact with a
database.
• DBAs who need a free database for training.
• Educational institutions and students for their curriculum.
• Oracle Database XE can be installed on a developer’s computer (either on laptop or
desktop). XE will store up to 11GB of user data, use up to 1GB of memory, and
use one CPU on the host machine.
Zend Server.
• Zend Server is a web application server. It includes an Apache web server
and a PHP engine that supports the requests from a PHP program from a
web client. The server also enables the connection with a database. An
organization may use it to host a web application with dynamic data from
databases.
• A developer can use Zend Server as a part of a developmental environment,
to run, and debug the code before deploying the application for production.