Why PHP For System I ?: Alison Butterill

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

IBM System i

Why PHP for System i ?

Alison Butterill

i want stress free IT.


i want control.
i want an i.

2007 IBM Corporation

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.

2007 IBM Corporation

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

PHP is the leading scripting language


deployed on the Internet
22+ Million Internet domains
Out Pacing Microsofts ASP*

Thousands of PHP applications are


available
Web applications tied to databases
Content management
Wikis and Blogs

www.hotscripts.com,
www.phpjunkyard.com/
www.phpfreaks.com/
www.phpfreebies.com/
* http://www.php.net/usage.php on 3-16-06

* Source: 2005 Netcraft Survey http://www.php.net/usage.php


3

i want an i.

2007 IBM Corporation

IBM System i

Basic syntax
Flat-text files with a PHP extension (or whatever Zend
Core is configured to process)

Can be used for command scripting (using the i5/OS


PASE utilities)

Typically used to add dynamic function to HTML


PHP code embedded in PHP tags:
<?php
// PHP code
?>
Lines are delimited with a semicolon (;)
PHP code is processed and the results are sent to
the user as HTML
You must understand HTML as it is the user interface

i want an i.

2007 IBM Corporation

IBM System i

PHP Code Sample


<html>
<title>Registration</title>
<body>
<p>You entered:</p>
<?php
$username = IBM;
$password = passw0rd;
echo <p>Username = . $username . </p>;
echo <p>Password = . $password . </p>;
?>
</body>
<html>

Simple scripting language


Easy to map to web artifacts

i want an i.

2007 IBM Corporation

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.

2007 IBM Corporation

IBM System i

A Brief History of PHP

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

Why Do Developers Use PHP?

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.

2007 IBM Corporation

IBM System i

What Types of Applications are Developed in PHP?

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.

2007 IBM Corporation

IBM System i

Open Source Applications Like SugarCRM

10

i want an i.

2007 IBM Corporation

IBM System i

Zend Technologies
The founders of Zend have been key contributors to the PHP language
since 1997

Zend delivers commercial products that enable developers and IT


personnel to deliver and operate business-critical PHP applications
Zend has been the leading supplier of PHP products and solutions for
the last six years. Its products and solutions are being used by more
than 15,000 companies worldwide. The Zend Engine (the PHP
kernel) is being utilized on more than 22 million websites today
Zend takes the open source PHP code through rigorous testing for
additional quality assurance and adds over 35 popular PHP
extensions to deliver their PHP runtime environment

Zend provides enterprise level support for the PHP environment


i want an i.

11

2007 IBM Corporation

IBM System i

Zend Products for Linux , Windows , and UNIX

$199 per year with


Standard Support

Zend Core
A fully tested and enhanced version of the open source
PHP runtime environement.

Zend Studio

$299 per year with


Standard Support

Provides an integrated IDE for building and debugging


PHP applications

Zend Guard

$995 per year with


Standard Support

Provides code protection and license enforcement tools


for solution providers (copyright protection)

Zend Platform

Prices not Public

A robust PHP production environment providing performance,


scalability, and monitoring for PHP applications

12

Prices from zend.,com on 6-29-06

i want an i.

2007 IBM Corporation

IBM System i

Web Development and Deployment Stacks

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

2007 IBM Corporation

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.

2007 IBM Corporation

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

For i5/OS solution providers who

need to enhance their application


offerings and are looking for an easy,
cost-effective and rapid way to
develop web applications

For PHP solution providers who

need to expand their market for new


PHP-based applications with the help
of an established partner

15

i want an i.

2007 IBM Corporation

IBM System i

System i and Zend Announcements


April 3, 2006: IBM and Zend announced a multi-year
agreement to deliver selected Zend PHP products and
solutions for i5/OS

July 11, 2006: IBM announcement of order taking for Zend


Core and Studio for i5/OS with GA on July 28.

First year, over 4200 people downloaded Zend Core for i5/OS

http://www.ibm.com/systems/i/software/php
16

i want an i.

2007 IBM Corporation

IBM System i

Zend Products for i5/OS

July 11, 2006 Announcement

Zend Core for i5/OS


Available July 28 through IBM or Zends web site

Zend Studio Professional for i5/OS


Available July 28 through IBM or Zends web site

Zend Platform for i5/OS


Available today via Zends web site

Zend Guard for i5/OS


Available directly from Zend

17

i want an i.

2007 IBM Corporation

IBM System i

Zend Products for i5/OS July 11, 2006 Announcement


Customers can order Zend Core for i5/OS and Zend Studio Professional for
i5/OS from IBM
Orders will be passed to Zend for fulfillment with a GA of July 28th

Zend Core for i5/OS


No Charge

PHP runtime environment in i5/OS providing


connections to DB2 UDB for i5/OS and RPG and
COBOL applications
With 3 years Standard support
Gold and Platinum support levels available for a fee

Zend Studio Professional for i5/OS

No Charge

Integrated Development Environment on Windows or Linux


With 3 years Standard support
Gold and Platinum support levels available for a fee
* Zend retail price for Core and Studio Professional on Intel for 5 developers with 3 years standard support zend/com 7-6-06

18

i want an i.

= $5000 Value*
2007 IBM Corporation

IBM System i

PHP Integration with i5/OS


Are shipped with Zend products
Zend core for i5/OS
Zend Platform for i5/OS

Specifically for accessing i5 data and resources


from PHP (similar to IBM ToolBox for Java)
DB2 UDB SQL and Native
Program call
Procedure call
Data Area
Data Queue
Message Queue
Commands
System values
Spool files

19

i want an i.

2007 IBM Corporation

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

System i Requirements for Zend Core for i5/OS


i5/OS V5R4
i5/OS V5R3
Zend Core for i5/OS Version 1.6 or later required
i5/OS V5R3 database PTF SI25802 is required
Zend Core for i5/OS does not support remote debugging from a
Zend Studio client

Plus
Portable App Solutions Environment (PASE)

33

5722-SS1

IBM Portable Utilities for i5/OS

*base

5733-SC1

OpenSSH, OpenSST.Zlib

5733-SC1

Cryto Access Provider 128 bit

*base

5722-AC3

Qshell

30

5722-SS1

System Openness Includes

13

5722-SS1

Digital Certificate Manager

34

5722-SS1

System i servers that run i5/OS V5R4 or V5R3

21

i want an i.

2007 IBM Corporation

IBM System i

Web Development and Deployment Stacks

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

2007 IBM Corporation

11

IBM System i

Web Development and Deployment Stacks

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.

2007 IBM Corporation

IBM System i

IBM Strategy includes PHP: System i Developers Road Atlas

Traditional
Applications

UI

i5/OS

New
Components

24

i want an i.

DB2 for
i5/OS

Other
Sources

2007 IBM Corporation

12

IBM System i

IBM Strategy includes PHP: System i Developers Road Atlas

UI

i5/OS

New
Components
Java

DB2 for
i5/OS

Web

XML

SQL

COBOL

i want an i.

25

2007 IBM Corporation

IBM System i

PHP and Java


Java

general purpose programming language


wide range of application types
generally more specific to transaction based systems
PHP
specialized programming language
focused on Web and Web services development
simpler language to learn; faster delivery of solutions

Both languages integrate with other application components


regardless of language

PHP and Java can work together in a mixed environment


Java back-end applications have PHP web-based front-ends?

26

i want an i.

2007 IBM Corporation

13

IBM System i

2006 Highlights

Deployed Opensource PHP applications on i5/OS


5000+ registrations for Zends products for i5/OS
My Customer .. deployed 6 PHP applications on i5/OS instead of UNIX
My Customer .. shortened their development cycle by leveraging PHP
My Customer .. Moved PHP applications from x86 to i5/OS

27

i want an i.

2007 IBM Corporation

IBM System i

2007 - System i Key Initiatives Include PHP


For Small/Medium
Enterprises:
Support VIP solutions with
new competitiveness vs
Windows
Extend BladeCenter
integration with VMWare
Integrate IP telephony and
collaboration solutions

Deploy more open


source applications

For Large Enterprises:


Drive new business resiliency
solutions with CBU
Enhance internal disk flexibility
& performance
Take the next step with SOA
Virtualize more, manage less
. And prepare for
POWER6 and i5/OS V5R5

Drive new business


resiliency solutions with
CBU

28

i want an i.

2007 IBM Corporation

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.

2007 IBM Corporation

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.

2007 IBM Corporation

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.

2007 IBM Corporation

IBM System i

PHP Applications

32

i want an i.

2007 IBM Corporation

16

IBM System i

Content Management Applications

You can check out over 100 applications including Wiki's,


BLOGs, Portals, Forums and much more

http://www.opensourcecms.com/
33

i want an i.

2007 IBM Corporation

IBM System i

What are System i Customers Doing with PHP?


Top Four:
1.Consolidation: Move PHP applications that are running on
Windows or Linux that access data in DB2 to run in i5/OS to
speed up or reduce complexity of the applications.
2.Modernization: Use PHP to web-enable green screen
applications.
3.New application development: Create new applications with
PHP on i5/OS including applications for the intranet, reporting,
websites, and extranets.
4.Leveraging PHP portfolio: Run commercial or open source
PHP applications on i5/OS.

34

i want an i.

2007 IBM Corporation

17

IBM System i

1. Consolidation
PHP App on clients

Server
PROC1

THIS
PWS

Web Front End

SELECT * INTO
UPDATE EMP-MSTR
UPDATE DEPT-MSTR

PHP App on Server


PROC1

TO THIS

PASE
PWS

35

i want an i.

SELECT * INTO
UPDATE EMP-MSTR
UPDATE DEPT-MSTR

2007 IBM Corporation

IBM System i

2. Modernization
DB2
for
DB
DB
i5/OS

*PGMs

*SRVPGMs

User Interface

36

i want an i.

Business Logic Tier

2007 IBM Corporation

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

Business Logic Tier

2007 IBM Corporation

IBM System i

3. New Development: Zend Studio Professional for i5/OS

38

i want an i.

2007 IBM Corporation

19

IBM System i

Zend Studio Example


Executes an SQL query,
returning records
whose LASTNAME field
begins with 'S'.

39

i want an i.

2007 IBM Corporation

IBM System i

New Application Development


Zend Studio for eclipse
Plug-in for eclipse-based tools like
WDSC
Ability to create PHP from
within same workbench as RPG,
etc.
Currently testing for
compatibility
Huge interest from System i

40

i want an i.

2007 IBM Corporation

20

IBM System i

Zend Forum for i5/OS .. www.zend.com/forums

41

i want an i.

2007 IBM Corporation

IBM System i

4. Leveraging Application Portfolio: PHP and MySQL

Customer Relationship Management

Help Desk
Portal

Portal

Portal

Course Management System


e-Commerce
Wiki

Bulletin Board

42

i want an i.

Content Management System


2007 IBM Corporation

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

We have MySQL running in i5/OS today


How to posted on Zend Forum
43

i want an i.

2007 IBM Corporation

IBM System i

Customer: Parts Depot


Background
Parts Depot is one of the largest
distributors and resellers of automotive
aftermarket parts and paints in the U.S.

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.

Its about the speed of delivery to


the market. When you have a new
idea for an application, you have to
build it quickly, implement it and get
it into the market. If youre going to
keep a competitive advantage, you
have to be nimble.
Jonathan George, CIO

2007 IBM Corporation

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.

2007 IBM Corporation

IBM System i

Customer: Icon Fitness


Background
World's large home fitness
manufacturer...and includes brands
such as NordicTrack, HealthRider, and
Proform

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

For i5/OS solution providers who

need to enhance their application


offerings and are looking for an easy,
cost-effective and rapid way to
develop web applications

For PHP solution providers who

need to expand their market for new


PHP-based applications with the help
of an established partner

47

i want an i.

2007 IBM Corporation

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.

2007 IBM Corporation

24

You might also like