Why PHP For System I ?: Alison Butterill
Why PHP For System I ?: Alison Butterill
Why PHP For System I ?: Alison Butterill
Alison Butterill
IBM System i
Agenda
What is PHP
Brief History and Zend
PHP on System i
What are customers doing with PHP?
i want an i.
IBM System i
What is PHP?
PHP is an easy to use, open source,
platform independent server-side
scripting language
Designed for web application development
4.5+ Million PHP Developers
www.hotscripts.com,
www.phpjunkyard.com/
www.phpfreaks.com/
www.phpfreebies.com/
* http://www.php.net/usage.php on 3-16-06
i want an i.
IBM System i
Basic syntax
Flat-text files with a PHP extension (or whatever Zend
Core is configured to process)
i want an i.
IBM System i
i want an i.
IBM System i
Agenda
What is PHP
Brief History and Zend
PHP on System i
What are customers doing with PHP?
i want an i.
IBM System i
Yahoo!
Standardizes
on PHP
Rasmus
Lerdorf
develops
PHP/FI
Zeev Suraski,
Andi Gutmans
develop
PHP 3
1M Internet
domains
Zend Engine
Zend Founded
PHP 5.0
XML,
SOAP,
OOP
Zend Studio
IBM, Oracle
Endorse
PHP
23M
PHP 4
Released
15M
10M
5M
PHP
Internet
Domains
1995
7
1997
1999
2000
2002
2004
i want an i.
Today
2007 IBM Corporation
IBM System i
Zend's June 2003 market snapshot of the PHP community. The survey had over 10,000 respondents.
http://www.zend.com/zend/php_survey_results.php
i want an i.
IBM System i
Zend's June 2003 market snapshot of the PHP community. The survey had over 10,000 respondents.
http://www.zend.com/zend/php_survey_results.php
9
i want an i.
IBM System i
10
i want an i.
IBM System i
Zend Technologies
The founders of Zend have been key contributors to the PHP language
since 1997
11
IBM System i
Zend Core
A fully tested and enhanced version of the open source
PHP runtime environement.
Zend Studio
Zend Guard
Zend Platform
12
i want an i.
IBM System i
L A M P
i p y H
n a S P
u c Q
x h L
e
i I y H
n S S P
d
Q
o
L
w
s
i want an i.
13
IBM System i
Agenda
14
What is PHP
Brief History and Zend
PHP on System i
What are customers doing with PHP?
i want an i.
IBM System i
PHP on System i
For System i customers who need to
innovate their business and are
looking for an easy, cost-effective and
rapid way to deploy web applications
15
i want an i.
IBM System i
First year, over 4200 people downloaded Zend Core for i5/OS
http://www.ibm.com/systems/i/software/php
16
i want an i.
IBM System i
17
i want an i.
IBM System i
No Charge
18
i want an i.
= $5000 Value*
2007 IBM Corporation
IBM System i
19
i want an i.
IBM System i
DB2 Example
Retrieve the
list of names
from table
named
NAMES in
library
RMSMITH
20
i want an i.
<?php
$user=PHPUSER;
$password=PASSWORD;
$db=SE520A2;
try {
$conn = db2_connect($db, $user, $password);
if (! $conn) {
echo db2_conn_errormsg();
} else {
echo "Names from Table RMSMITH/NAMES</br>";
$result = db2_exec($conn, "select * from rmsmith.names ");
if ($result) {
while ($row = db2_fetch_both($result)) {
echo "Hello, ".$row['NAME']."</br>";
}
}
db2_close($conn);
}
} catch (Exception $ex) {
echo $ex;
}
?>
2007 IBM Corporation
10
IBM System i
Plus
Portable App Solutions Environment (PASE)
33
5722-SS1
*base
5733-SC1
OpenSSH, OpenSST.Zlib
5733-SC1
*base
5722-AC3
Qshell
30
5722-SS1
13
5722-SS1
34
5722-SS1
21
i want an i.
IBM System i
L A M P
i p y H
n a S P
u c Q
x h L
e
22
i want an i.
i I y H
n S S P
d
Q
o
L
w
s
5
/
O
S
p B H
a 2 P
c
h
e
11
IBM System i
L A M P
i p y H
n a S P
u c Q
x h L
e
23
i I y H
n S S P
d
Q
o
L
w
s
5
/
O
S
p
a
c
h
e
y H
S P
Q
L
i want an i.
IBM System i
Traditional
Applications
UI
i5/OS
New
Components
24
i want an i.
DB2 for
i5/OS
Other
Sources
12
IBM System i
UI
i5/OS
New
Components
Java
DB2 for
i5/OS
Web
XML
SQL
COBOL
i want an i.
25
IBM System i
26
i want an i.
13
IBM System i
2006 Highlights
27
i want an i.
IBM System i
28
i want an i.
14
IBM System i
Agenda
29
What is PHP
Brief History and Zend
PHP on System i
What are customers doing with PHP?
i want an i.
IBM System i
PHP Applications
Check out the thousands of PHP scripts
available that can be used as-is or as the
starting point for Web projects.
30
http://www.hotscripts.com
http://www.phpjunkyard.com/
http://www.phpfreaks.com/
http://phpfreebies.com/
i want an i.
15
IBM System i
PHP Applications
Check out the thousands of PHP scripts
available that can be used as-is or as the
starting point for Web projects.
31
http://www.hotscripts.com
http://www.phpjunkyard.com/
http://www.phpfreaks.com/
http://phpfreebies.com/
i want an i.
IBM System i
PHP Applications
32
i want an i.
16
IBM System i
http://www.opensourcecms.com/
33
i want an i.
IBM System i
34
i want an i.
17
IBM System i
1. Consolidation
PHP App on clients
Server
PROC1
THIS
PWS
SELECT * INTO
UPDATE EMP-MSTR
UPDATE DEPT-MSTR
TO THIS
PASE
PWS
35
i want an i.
SELECT * INTO
UPDATE EMP-MSTR
UPDATE DEPT-MSTR
IBM System i
2. Modernization
DB2
for
DB
DB
i5/OS
*PGMs
*SRVPGMs
User Interface
36
i want an i.
18
IBM System i
Modernization
View
HTML
PHP
scripts
Controller
dataqs
Controller
PASE
37
i want an i.
DB2
for
DB
DB
i5/OS
*PGMs
Model
*SRVPGMs
IBM System i
38
i want an i.
19
IBM System i
39
i want an i.
IBM System i
40
i want an i.
20
IBM System i
41
i want an i.
IBM System i
Help Desk
Portal
Portal
Portal
Bulletin Board
42
i want an i.
21
IBM System i
MySQL
MySQL is the database for the PHP application portfolio
MySQL is the M in LAMP
MySQL is the most popular open source database
1000s of PHP scripts and applications use MySQL
Database Products
MySQL Community Server
No charge
Supported by community
MySQL Enterprise
Chargeable
Supported by MySQL
i want an i.
IBM System i
Objectives
Update its applications that enable
business partners to conduct a variety
of online transactions, ranging from
price quotations to fulfillment to the
reviewing of historical data.
Solution
Three System i 520s support the
business.
Production, Development and HA
Developed new web application with
PHP integrating with backend RPG
applications
44
i want an i.
22
IBM System i
Customer: Cremer
Background
Distributor and manufacture of disposable
health products in Brazil
Challenge
Improve customer satisfaction with a
streamlined call center application inventory,
prices, credit, invoices
Reduce software costs
Solution
Developed new PHP web-based call center
application accessing DB2 on i5/OS V5R3
Benefits
Reduction in software costs
Short development cycle even though started
with no PHP skills
Faster access to DB2 information
45
i want an i.
IBM System i
Challenge
Quickly develop fitness/nutrition web
sites to meet January demand peak
Solution
Developed new consumer web sites
with PHP tying into existing
WebSphere Commerce Server on
i5/OS V5R4
46
i want an i.
www.ifit.com
www.iconfitness.com
2007 IBM Corporation
23
IBM System i
Summary
For System i customers who need to
innovate their business and are
looking for an easy, cost-effective and
rapid way to deploy web applications
47
i want an i.
IBM System i
Trademarks
Trademarks
The following are trademarks of the International Business Machines Corporation in the United States and/or other countries. For a complete list of IBM Trademarks, see
www.ibm.com/legal/copytrade.shtml: AS/400, DBE, e-business logo, ESCO, eServer, FICON, IBM, IBM Logo, iSeries, MVS, OS/390, pSeries, RS/6000, S/30, VM/ESA, VSE/ESA,
Websphere, xSeries, z/OS, zSeries, z/VM
The following are trademarks or registered trademarks of other companies
Lotus, Notes, and Domino are trademarks or registered trademarks of Lotus Development Corporation
Java and all Java-related trademarks and logos are trademarks of Sun Microsystems, Inc., in the United States and other countries
LINUX is a registered trademark of Linux Torvalds
UNIX is a registered trademark of The Open Group in the United States and other countries.
Microsoft, Windows and Windows NT are registered trademarks of Microsoft Corporation.
SET and Secure Electronic Transaction are trademarks owned by SET Secure Electronic Transaction LLC.
Intel is a registered trademark of Intel Corporation
* All other products may be trademarks or registered trademarks of their respective companies.
NOTES:
Performance is in Internal Throughput Rate (ITR) ratio based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput that
any user will experience will vary depending upon considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the
workload processed. Therefore, no assurance can be given that an individual user will achieve throughput improvements equivalent to the performance ratios stated here.
IBM hardware products are manufactured from new parts, or new and serviceable used parts. Regardless, our warranty terms apply.
All customer examples cited or described in this presentation are presented as illustrations of the manner in which some customers have used IBM products and the results they may have
achieved. Actual environmental costs and performance characteristics will vary depending on individual customer configurations and conditions.
This publication was produced in the United States. IBM may not offer the products, services or features discussed in this document in other countries, and the information may be subject
to change without notice. Consult your local IBM business contact for information on the product or services available in your area.
All statements regarding IBM's future direction and intent are subject to change or withdrawal without notice, and represent goals and objectives only.
Information about non-IBM products is obtained from the manufacturers of those products or their published announcements. IBM has not tested those products and cannot confirm the
performance, compatibility, or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products.
Prices subject to change without notice. Contact your IBM representative or Business Partner for the most current pricing in your geography.
References in this document to IBM products or services do not imply that IBM intends to make them available in every country.
Any proposed use of claims in this presentation outside of the United States must be reviewed by local IBM country counsel prior to such use.
The information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of
the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice.
Any references in this information to non-IBM Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those
Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk.
48
i want an i.
24