SlideShare a Scribd company logo
1 of 82
IBM i Tutorial ByMike Pavlak – Solution Consultant
Introductions Who do we have here?
Who is Mike? IBM i PHP Bigot! Solution Consultant:  Techie tagalong – Works w/Account Managers  Help account managers develop solutions for customers IBM i advocate COMMON Americas Advisory Council Omni User Group IT Director, Development manager, Consultant, Programmer, Ops…
Who are you? Around the room Name Job Title Company What are you doing with PHP on IBM i?
ZendCon ‘09 – IBM i Events Sessions on Tuesday PHP Faster and Cheaper Sam Hennessy – Zend Technologies Zend Core on IBM i – Security Considerations Tony Cairns – IBM  PHP and IBM i - Database Alternatives Erwin Early – IBM Zend Framework on IBM i Alan Seiden – Strategic Business Systems Mazda: Advanced Web Services and PHP Olivier Lépine  - Quatrain Technologies
ZendCon ‘09 – IBM i Events (cont.) Lunch Tables will be labeled for i5 community networking Yes you can sit somewhere else  IBM i Networking Reception  Immediately following the “Meet the Team” Wednesday evening meet in the hall and head out Dinner is on you, but beers are on Zend!   Gordon Biersch (note in your bag or see me!)
Review IBM i Product Line from Zend Zend Core (PHP Runtime) Still free  Silver support for one year after Feb 2009 Zend Studio 7.0 for IBM i (IDE) Still free Basic support for one year after Feb 2009 Zend Platform (Box of tools) Annual subscription license Support upgrades available (Throat to choke!) Gold and Platinum
What’s new? Zend Server for IBM i  New product that combines features from Core and Platform Single stack for all features Alignment with other platforms! One Apache server, not two!  IBM server stays PASE server goes. Still free version for i5 customers (Community Edition) Currently in QA, beta soon GA after that
Current Architecture System i5 i5/OS URL:  http://myproxy:89/core/registration.php            PASE Zend Core PHP file HTTP:89 Server (Reverse Proxy) Request HTTP:8000 Server Response PHP Module HTML + PHP            DB2 UDB Zend  Platform
Agenda Toolkit functions Studio Integration Break #1 Zend Server Open Source on IBM i Break #2 Mix & Match Procedural PHP and Zend Framework
Toolkit functions How we talk to IBM i from PHP Scripts
Toolkit functions to be reviewed Differences between connections System Values Data Area Library List Object Listing Program Call
Survey question How many folks have used i5 functions? Which ones? What are we missing?
Connections, what’s the diff? i5_connect Access OS features  Access database features Only available on i5, sorry Linux  db2_connect Access database features only Better performance  Great for ubiquitous development
Connection successful
Connection error
DB2 Connection Get doc at http://php.net/manual/en/book.ibm-db2.php
DB2 Connection i5 options listed here too!
DB2 Connection: Good
DB2 Connection: Bad
System value Build a “Manager Shortcut” menu Key pieces of info for software installation & BP’s Display via browser
System Value Code
System Value Display
Data Area Use i5 to connect to IBM i DB2 Connect will only take you to the Database
Data Area Access
Library List… I5_connect Get the data area without a library reference
Data Area with library list
Object Listing Given a library Show objects in the library Think of the list of objects as a result set from SQL Standard aproach Create list Read list This works for spooled files, active jobs, etc.
Object listing code
Object list output
A brief word about CSS Cascading Style Sheets Very powerful in maintaining consistent look and feel of elements across applications Will continue to use sample.css through presentation
Studio Integration How Zend Platform works…
Debugging for the rest of us… Very few slides Lots of demo Debug Platform More…
Debug rules Must use port 8000! Tunnel helps a LOT Browser integration We’ll look at configuring debug in Zend Studio Then look at Zend Platform integration!
Break  Be back in 10 minutes
Zend Server for IBM i The next generation of the Zend Stack for IBM i
The next generation of IBM i Zend Stack Improvements: Faster, How fast?  I can’t tell you…but it is faster! One less Apache server (Yay!) More powerful JOBQ function Alignment with the other product lines Lot’s of tweaks and enhancements Private Beta starting soon Public beta immediately afterward
Open Source on IBM i A quick look at PHPMyAdmin
Number 2 reason folks look at PHP on IBM i Agenda Explore benefits of open source on IBM i Ponder a short list of popular applications  Examine the components for installation Review the installation steps Walk through a live implementation
phpMyAdmin Fabulous utility for accessing MySQL Data on ANY platform Written completely in PHP You must have MySQL installed Runs on IBM i…but… …not supported on IBM i DBU for MySQL!
What we will do with phpMyAdmin Demo the product Walk through the install steps Demo a live installation
phpMyAdmin Demo… http://cuper1.zend.com:89/phpmyadmin Tour MIKEY1 Create table More features
phpMyAdmin – Installation process Pre-requisties: Zend Core for i5/OS MySQL version 5 or greater V5R4 or V6R1 Agenda Get file Move to IBM i Un-tar Configure Play
Get phpMyAdmin file to IBM i Go to the host website, download current version http://www.phpmyadmin.net Click Download at top of screen Select version appropriate for you, I chose English tar.gz
Compression Compression and archive… TAR was done first Then GZIP was done.   So…. You need to work in reverse Unzip the file on your workstation (PKZip, etc.) Move the file phpMyAdmin-3.2.2-english.tar to the IFS doc root Then untar on the i5
Place file into document root
Command to untar Tar = Tap Archive Use QP2TERM interfac to untar Call QP2TERM Change to the document root CD /www/zendcore/htdocs
Open PASE Shell
Open PASE Shell
After the tar The screen will roll quite a bit then you get the $ Now create a symbolic link to the directory for ease of use ln -s ./phpMyAdmin-3.2.2-english  phpMyAdmin
Create the config file The config file tells phpMyAdmin where everything is.   Create manually Use automated feature Move to the phpMyAdmin directory cdphpmyadmin Create the directory & set security mkdirconfig chmodo+rwconfig
Results of directory and security changes
Go to browser to run config http://your_host/path/to/phpMyAdmin/setup/
Scroll down to config options Click the New server button…
Enter server specific info Type a description of the server name Leave localhost for hostname…click SAVE
Finish options Select language, etc.  And click save again
Copy the config file to phpMyAdmin directory You just created a config file in directory config Move the file to the phpMyAdmin directory for use mvconfig/config.inc.php . chmod o-rwconfig.inc.php
Head to the phpMyAdmin login screen http://yourservername/phpMyAdmin/
Add user to MySQL cd /usr/local/mysql/bin Mysql –u root use mysql select user, password from user;
Before the addition
After the addition Add the user: CREATE USER ‘mpavlak'@‘%' IDENTIFIED BY ‘test1'; GRANT SELECT,INSERT,UPDATE,DELETE ON *.* TO ‘mpavlak'@’%’; Or GRANT ALL ON *.* TO ‘mpavlak'@’%’;
And we’re in!
Break  Be back in 10 minutes
Mix & match Procedural PHP & Zend Framework
Procedural PHP and Zend Framework Agenda Look at a procedural PHP application that gets order info Look at the info in a web page Move info to PDF and distribute Think ZF is hard?  Guess again!
Zend_PDF Check out the Zend Framework website http://www.zendframework.com/manual/en/zend.pdf.html Look at an example that reads DB2 data and produces a PDF
Agenda Read order detail file Instantiate a PDF object Update the object with the contents of the order Write the PDF Dispose of the object Admire our work!
Zend_PDF Component of Zend Framework Comes with Zend Core for i5 FREE!!! ZF is built by the community, for the community Documentation at: http://framework.zend.com/manual/en/zend.pdf.html
Build the content Read through the detail file…
Object & heading Create object  Set heading
Body of print Develop line detail  Output the PDF o the IFS
Windows Explorer view of IFS Once in the IFS you do what you want FTP, email, cms, etc…
The PDF!
Zend_PDF Documentation Check out Zend_PDF doc at ZendFramework.com Make it look pretty Integrate into procedural development Learn a little OO as you go Come to Zend for more training Higher Structures Zend Framework Certification prep More…
Where to get more information Zend and other places
Free code! PHPClasses.org Hotscript.com Sourceforge.net Php.net Thefreecountry.com/php
Support Zend.com Forums Knowledgebase Webcasts Downloads  Developer Zone Product information & documentation Paid products
New book, new printing, same great stuff! Kevin Schroeder from Zend’s Global Services Group with  Jeff Olen, co-author of… Get yours at MCPressonline or at fine bookstores everywhere
Mike’s blog! http://mikepavlak/blogspot.com Aggregated at http://planet-i.org/
IBM i Events…reminder!!! Sessions on Tuesday PHP Faster and Cheaper Sam Hennessy – Zend Technologies Zend Core on IBM i – Security Considerations Tony Cairns – IBM  PHP and IBM i - Database Alternatives Erwin Early – IBM Zend Framework on IBM i Alan Seiden – Strategic Business Systems Mazda: Advanced Web Services and PHP Olivier Lépine  - Quatrain Technologies
IBM i Events (cont.) Lunch Tables will be labeled for i5 community networking Yes you can sit somewhere else  IBM i Networking Reception  Immediately following the “Meet the Team” Wednesday evening meet in the hall and head out Dinner is on you, but beers are on Zend!   Gordon Biersch (note in your bag or see me!)
Please enjoy the Conference! Thank you!!!

More Related Content

What's hot

Strategic Modernization with PHP on IBM i
Strategic Modernization with PHP on IBM iStrategic Modernization with PHP on IBM i
Strategic Modernization with PHP on IBM iAlan Seiden
 
Create a welcoming development environment on IBM i
Create a welcoming development environment on IBM iCreate a welcoming development environment on IBM i
Create a welcoming development environment on IBM iAlan Seiden
 
Zend Products and PHP for IBMi
Zend Products and PHP for IBMi  Zend Products and PHP for IBMi
Zend Products and PHP for IBMi Shlomo Vanunu
 
Web services on IBM i with PHP and Zend Framework
Web services on IBM i with PHP and Zend FrameworkWeb services on IBM i with PHP and Zend Framework
Web services on IBM i with PHP and Zend FrameworkAlan Seiden
 
PHP Batch Jobs on IBM i
PHP Batch Jobs on IBM iPHP Batch Jobs on IBM i
PHP Batch Jobs on IBM iAlan Seiden
 
From Zero to ZF: Your first zend framework project on ibm i
From Zero to ZF: Your first zend framework project on ibm iFrom Zero to ZF: Your first zend framework project on ibm i
From Zero to ZF: Your first zend framework project on ibm iAlan Seiden
 
Browser tools that make web development easier
Browser tools that make web development easierBrowser tools that make web development easier
Browser tools that make web development easierAlan Seiden
 
Php Dependency Management with Composer ZendCon 2016
Php Dependency Management with Composer ZendCon 2016Php Dependency Management with Composer ZendCon 2016
Php Dependency Management with Composer ZendCon 2016Clark Everetts
 
Fundamentals of performance tuning PHP on IBM i
Fundamentals of performance tuning PHP on IBM i  Fundamentals of performance tuning PHP on IBM i
Fundamentals of performance tuning PHP on IBM i Zend by Rogue Wave Software
 
IBM i: Fertile Ground for PHP Developers
IBM i: Fertile Ground for PHP DevelopersIBM i: Fertile Ground for PHP Developers
IBM i: Fertile Ground for PHP DevelopersAlan Seiden
 
Zend con 2016 bdd with behat for beginners
Zend con 2016   bdd with behat for beginnersZend con 2016   bdd with behat for beginners
Zend con 2016 bdd with behat for beginnersAdam Englander
 
PHP Installed on IBM i - the Nickel Tour
PHP Installed on IBM i - the Nickel TourPHP Installed on IBM i - the Nickel Tour
PHP Installed on IBM i - the Nickel TourRod Flohr
 
Running open source PHP applications on you IBM i
Running open source PHP applications on you IBM iRunning open source PHP applications on you IBM i
Running open source PHP applications on you IBM iProximity Group
 
Install MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and moreInstall MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and moreRod Flohr
 
Zend Framework 2, What's new, Confoo 2011
Zend Framework 2, What's new, Confoo 2011Zend Framework 2, What's new, Confoo 2011
Zend Framework 2, What's new, Confoo 2011Bachkoutou Toutou
 
Web Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the futureWeb Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the futureToru Kawamura
 
Hey My Web App is Slow Where is the Problem
Hey My Web App is Slow Where is the ProblemHey My Web App is Slow Where is the Problem
Hey My Web App is Slow Where is the ProblemColdFusionConference
 

What's hot (19)

Strategic Modernization with PHP on IBM i
Strategic Modernization with PHP on IBM iStrategic Modernization with PHP on IBM i
Strategic Modernization with PHP on IBM i
 
Create a welcoming development environment on IBM i
Create a welcoming development environment on IBM iCreate a welcoming development environment on IBM i
Create a welcoming development environment on IBM i
 
Zend Products and PHP for IBMi
Zend Products and PHP for IBMi  Zend Products and PHP for IBMi
Zend Products and PHP for IBMi
 
Web services on IBM i with PHP and Zend Framework
Web services on IBM i with PHP and Zend FrameworkWeb services on IBM i with PHP and Zend Framework
Web services on IBM i with PHP and Zend Framework
 
PHP Batch Jobs on IBM i
PHP Batch Jobs on IBM iPHP Batch Jobs on IBM i
PHP Batch Jobs on IBM i
 
From Zero to ZF: Your first zend framework project on ibm i
From Zero to ZF: Your first zend framework project on ibm iFrom Zero to ZF: Your first zend framework project on ibm i
From Zero to ZF: Your first zend framework project on ibm i
 
Browser tools that make web development easier
Browser tools that make web development easierBrowser tools that make web development easier
Browser tools that make web development easier
 
Php Dependency Management with Composer ZendCon 2016
Php Dependency Management with Composer ZendCon 2016Php Dependency Management with Composer ZendCon 2016
Php Dependency Management with Composer ZendCon 2016
 
Fundamentals of performance tuning PHP on IBM i
Fundamentals of performance tuning PHP on IBM i  Fundamentals of performance tuning PHP on IBM i
Fundamentals of performance tuning PHP on IBM i
 
IBM i: Fertile Ground for PHP Developers
IBM i: Fertile Ground for PHP DevelopersIBM i: Fertile Ground for PHP Developers
IBM i: Fertile Ground for PHP Developers
 
Zend con 2016 bdd with behat for beginners
Zend con 2016   bdd with behat for beginnersZend con 2016   bdd with behat for beginners
Zend con 2016 bdd with behat for beginners
 
PHP Installed on IBM i - the Nickel Tour
PHP Installed on IBM i - the Nickel TourPHP Installed on IBM i - the Nickel Tour
PHP Installed on IBM i - the Nickel Tour
 
Running open source PHP applications on you IBM i
Running open source PHP applications on you IBM iRunning open source PHP applications on you IBM i
Running open source PHP applications on you IBM i
 
Install MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and moreInstall MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and more
 
Require js training
Require js trainingRequire js training
Require js training
 
Zend Framework 2, What's new, Confoo 2011
Zend Framework 2, What's new, Confoo 2011Zend Framework 2, What's new, Confoo 2011
Zend Framework 2, What's new, Confoo 2011
 
Web Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the futureWeb Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the future
 
Hey My Web App is Slow Where is the Problem
Hey My Web App is Slow Where is the ProblemHey My Web App is Slow Where is the Problem
Hey My Web App is Slow Where is the Problem
 
Zend Framework
Zend FrameworkZend Framework
Zend Framework
 

Viewers also liked

MySQL Manchester TT - Replication Features
MySQL Manchester TT  - Replication FeaturesMySQL Manchester TT  - Replication Features
MySQL Manchester TT - Replication FeaturesMark Swarbrick
 
MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer OverviewOlav Sandstå
 
MySQL Manchester TT - Security
MySQL Manchester TT  - SecurityMySQL Manchester TT  - Security
MySQL Manchester TT - SecurityMark Swarbrick
 
Framework Shootout
Framework ShootoutFramework Shootout
Framework ShootoutZendCon
 
Oracle Compute Cloud Service快速实践
Oracle Compute Cloud Service快速实践Oracle Compute Cloud Service快速实践
Oracle Compute Cloud Service快速实践Zhaoyang Wang
 
MySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats newMySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats newMark Swarbrick
 
Tiery Eyed
Tiery EyedTiery Eyed
Tiery EyedZendCon
 
MySQL Tech Tour 2015 - 5.7 Connector/J/Net
MySQL Tech Tour 2015 - 5.7 Connector/J/NetMySQL Tech Tour 2015 - 5.7 Connector/J/Net
MySQL Tech Tour 2015 - 5.7 Connector/J/NetMark Swarbrick
 
Oracle Compute Cloud Service介绍
Oracle Compute Cloud Service介绍Oracle Compute Cloud Service介绍
Oracle Compute Cloud Service介绍Zhaoyang Wang
 
A Storage Story #ChefConf2013
A Storage Story #ChefConf2013A Storage Story #ChefConf2013
A Storage Story #ChefConf2013Kyle Bader
 
Why MySQL High Availability Matters
Why MySQL High Availability MattersWhy MySQL High Availability Matters
Why MySQL High Availability MattersMark Swarbrick
 
Oracle cloud ravello介绍及测试账户申请
Oracle cloud ravello介绍及测试账户申请Oracle cloud ravello介绍及测试账户申请
Oracle cloud ravello介绍及测试账户申请Zhaoyang Wang
 
Solving the C20K problem: Raising the bar in PHP Performance and Scalability
Solving the C20K problem: Raising the bar in PHP Performance and ScalabilitySolving the C20K problem: Raising the bar in PHP Performance and Scalability
Solving the C20K problem: Raising the bar in PHP Performance and ScalabilityZendCon
 
Application Diagnosis with Zend Server Tracing
Application Diagnosis with Zend Server TracingApplication Diagnosis with Zend Server Tracing
Application Diagnosis with Zend Server TracingZendCon
 
Oracle cloud 使用云市场快速搭建小型电商网站
Oracle cloud 使用云市场快速搭建小型电商网站Oracle cloud 使用云市场快速搭建小型电商网站
Oracle cloud 使用云市场快速搭建小型电商网站Zhaoyang Wang
 
Planning for Synchronization with Browser-Local Databases
Planning for Synchronization with Browser-Local DatabasesPlanning for Synchronization with Browser-Local Databases
Planning for Synchronization with Browser-Local DatabasesZendCon
 
Digital Identity
Digital IdentityDigital Identity
Digital IdentityZendCon
 
MySQL Intro JSON NoSQL
MySQL Intro JSON NoSQLMySQL Intro JSON NoSQL
MySQL Intro JSON NoSQLMark Swarbrick
 

Viewers also liked (20)

MySQL Manchester TT - Replication Features
MySQL Manchester TT  - Replication FeaturesMySQL Manchester TT  - Replication Features
MySQL Manchester TT - Replication Features
 
MySQL Optimizer Overview
MySQL Optimizer OverviewMySQL Optimizer Overview
MySQL Optimizer Overview
 
MySQL in your laptop
MySQL in your laptopMySQL in your laptop
MySQL in your laptop
 
MySQL Manchester TT - Security
MySQL Manchester TT  - SecurityMySQL Manchester TT  - Security
MySQL Manchester TT - Security
 
Framework Shootout
Framework ShootoutFramework Shootout
Framework Shootout
 
Oracle Compute Cloud Service快速实践
Oracle Compute Cloud Service快速实践Oracle Compute Cloud Service快速实践
Oracle Compute Cloud Service快速实践
 
MySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats newMySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats new
 
Tiery Eyed
Tiery EyedTiery Eyed
Tiery Eyed
 
MySQL Tech Tour 2015 - 5.7 Connector/J/Net
MySQL Tech Tour 2015 - 5.7 Connector/J/NetMySQL Tech Tour 2015 - 5.7 Connector/J/Net
MySQL Tech Tour 2015 - 5.7 Connector/J/Net
 
Oracle Compute Cloud Service介绍
Oracle Compute Cloud Service介绍Oracle Compute Cloud Service介绍
Oracle Compute Cloud Service介绍
 
Script it
Script itScript it
Script it
 
A Storage Story #ChefConf2013
A Storage Story #ChefConf2013A Storage Story #ChefConf2013
A Storage Story #ChefConf2013
 
Why MySQL High Availability Matters
Why MySQL High Availability MattersWhy MySQL High Availability Matters
Why MySQL High Availability Matters
 
Oracle cloud ravello介绍及测试账户申请
Oracle cloud ravello介绍及测试账户申请Oracle cloud ravello介绍及测试账户申请
Oracle cloud ravello介绍及测试账户申请
 
Solving the C20K problem: Raising the bar in PHP Performance and Scalability
Solving the C20K problem: Raising the bar in PHP Performance and ScalabilitySolving the C20K problem: Raising the bar in PHP Performance and Scalability
Solving the C20K problem: Raising the bar in PHP Performance and Scalability
 
Application Diagnosis with Zend Server Tracing
Application Diagnosis with Zend Server TracingApplication Diagnosis with Zend Server Tracing
Application Diagnosis with Zend Server Tracing
 
Oracle cloud 使用云市场快速搭建小型电商网站
Oracle cloud 使用云市场快速搭建小型电商网站Oracle cloud 使用云市场快速搭建小型电商网站
Oracle cloud 使用云市场快速搭建小型电商网站
 
Planning for Synchronization with Browser-Local Databases
Planning for Synchronization with Browser-Local DatabasesPlanning for Synchronization with Browser-Local Databases
Planning for Synchronization with Browser-Local Databases
 
Digital Identity
Digital IdentityDigital Identity
Digital Identity
 
MySQL Intro JSON NoSQL
MySQL Intro JSON NoSQLMySQL Intro JSON NoSQL
MySQL Intro JSON NoSQL
 

Similar to PHP on IBM i Tutorial

PHP and Zend Framework on Windows
PHP and Zend Framework on WindowsPHP and Zend Framework on Windows
PHP and Zend Framework on WindowsShahar Evron
 
Windows Server and Fast CGI Technologies For PHP
Windows Server and Fast CGI Technologies For PHPWindows Server and Fast CGI Technologies For PHP
Windows Server and Fast CGI Technologies For PHPTim Keller
 
Microsoft TechDays 2011 - PHP on Windows
Microsoft TechDays 2011 - PHP on WindowsMicrosoft TechDays 2011 - PHP on Windows
Microsoft TechDays 2011 - PHP on WindowsEnterprise PHP Center
 
Php Frameworks
Php FrameworksPhp Frameworks
Php FrameworksRyan Davis
 
How To Start Up With PHP In IBM i
How To Start Up With PHP In IBM iHow To Start Up With PHP In IBM i
How To Start Up With PHP In IBM iSam Pinkhasov
 
How To Start Up With Php In Ibm I
How To Start Up With Php In Ibm IHow To Start Up With Php In Ibm I
How To Start Up With Php In Ibm IAlex Frenkel
 
MVC Frameworks for building PHP Web Applications
MVC Frameworks for building PHP Web ApplicationsMVC Frameworks for building PHP Web Applications
MVC Frameworks for building PHP Web ApplicationsVforce Infotech
 
Slides from LAX & DEN usergroup meetings
Slides from LAX & DEN usergroup meetingsSlides from LAX & DEN usergroup meetings
Slides from LAX & DEN usergroup meetings10n Software, LLC
 
Enterprise PHP (PHP London Conference 2008)
Enterprise PHP (PHP London Conference 2008)Enterprise PHP (PHP London Conference 2008)
Enterprise PHP (PHP London Conference 2008)Ivo Jansch
 
Unleash your Symfony projects with eZ Platform
Unleash your Symfony projects with eZ PlatformUnleash your Symfony projects with eZ Platform
Unleash your Symfony projects with eZ PlatformSébastien Morel
 
Unit Test for ZF SlideShare Component
Unit Test for ZF SlideShare ComponentUnit Test for ZF SlideShare Component
Unit Test for ZF SlideShare Componentzftalk
 

Similar to PHP on IBM i Tutorial (20)

PHP and Zend Framework on Windows
PHP and Zend Framework on WindowsPHP and Zend Framework on Windows
PHP and Zend Framework on Windows
 
Zend Server - OSI Days
Zend Server - OSI DaysZend Server - OSI Days
Zend Server - OSI Days
 
Windows Server and Fast CGI Technologies For PHP
Windows Server and Fast CGI Technologies For PHPWindows Server and Fast CGI Technologies For PHP
Windows Server and Fast CGI Technologies For PHP
 
Microsoft TechDays 2011 - PHP on Windows
Microsoft TechDays 2011 - PHP on WindowsMicrosoft TechDays 2011 - PHP on Windows
Microsoft TechDays 2011 - PHP on Windows
 
Php Frameworks
Php FrameworksPhp Frameworks
Php Frameworks
 
How To Start Up With PHP In IBM i
How To Start Up With PHP In IBM iHow To Start Up With PHP In IBM i
How To Start Up With PHP In IBM i
 
How To Start Up With Php In Ibm I
How To Start Up With Php In Ibm IHow To Start Up With Php In Ibm I
How To Start Up With Php In Ibm I
 
MVC Frameworks for building PHP Web Applications
MVC Frameworks for building PHP Web ApplicationsMVC Frameworks for building PHP Web Applications
MVC Frameworks for building PHP Web Applications
 
Slides from LAX & DEN usergroup meetings
Slides from LAX & DEN usergroup meetingsSlides from LAX & DEN usergroup meetings
Slides from LAX & DEN usergroup meetings
 
Enterprise PHP (PHP London Conference 2008)
Enterprise PHP (PHP London Conference 2008)Enterprise PHP (PHP London Conference 2008)
Enterprise PHP (PHP London Conference 2008)
 
Unleash your Symfony projects with eZ Platform
Unleash your Symfony projects with eZ PlatformUnleash your Symfony projects with eZ Platform
Unleash your Symfony projects with eZ Platform
 
first pitch
first pitchfirst pitch
first pitch
 
werwr
werwrwerwr
werwr
 
sdfsdf
sdfsdfsdfsdf
sdfsdf
 
college
collegecollege
college
 
first pitch
first pitchfirst pitch
first pitch
 
Greenathan
GreenathanGreenathan
Greenathan
 
Unit Test for ZF SlideShare Component
Unit Test for ZF SlideShare ComponentUnit Test for ZF SlideShare Component
Unit Test for ZF SlideShare Component
 
first pitch
first pitchfirst pitch
first pitch
 
organic
organicorganic
organic
 

More from ZendCon

I18n with PHP 5.3
I18n with PHP 5.3I18n with PHP 5.3
I18n with PHP 5.3ZendCon
 
Cloud Computing: The Hard Problems Never Go Away
Cloud Computing: The Hard Problems Never Go AwayCloud Computing: The Hard Problems Never Go Away
Cloud Computing: The Hard Problems Never Go AwayZendCon
 
Magento - a Zend Framework Application
Magento - a Zend Framework ApplicationMagento - a Zend Framework Application
Magento - a Zend Framework ApplicationZendCon
 
Enterprise-Class PHP Security
Enterprise-Class PHP SecurityEnterprise-Class PHP Security
Enterprise-Class PHP SecurityZendCon
 
PHP and IBM i - Database Alternatives
PHP and IBM i - Database AlternativesPHP and IBM i - Database Alternatives
PHP and IBM i - Database AlternativesZendCon
 
Insights from the Experts: How PHP Leaders Are Transforming High-Impact PHP A...
Insights from the Experts: How PHP Leaders Are Transforming High-Impact PHP A...Insights from the Experts: How PHP Leaders Are Transforming High-Impact PHP A...
Insights from the Experts: How PHP Leaders Are Transforming High-Impact PHP A...ZendCon
 
Joe Staner Zend Con 2008
Joe Staner Zend Con 2008Joe Staner Zend Con 2008
Joe Staner Zend Con 2008ZendCon
 
Make your PHP Application Software-as-a-Service (SaaS) Ready with the Paralle...
Make your PHP Application Software-as-a-Service (SaaS) Ready with the Paralle...Make your PHP Application Software-as-a-Service (SaaS) Ready with the Paralle...
Make your PHP Application Software-as-a-Service (SaaS) Ready with the Paralle...ZendCon
 
DB2 Storage Engine for MySQL and Open Source Applications Session
DB2 Storage Engine for MySQL and Open Source Applications SessionDB2 Storage Engine for MySQL and Open Source Applications Session
DB2 Storage Engine for MySQL and Open Source Applications SessionZendCon
 
Modernizing i5 Applications
Modernizing i5 ApplicationsModernizing i5 Applications
Modernizing i5 ApplicationsZendCon
 
Lesser Known Security Problems in PHP Applications
Lesser Known Security Problems in PHP ApplicationsLesser Known Security Problems in PHP Applications
Lesser Known Security Problems in PHP ApplicationsZendCon
 
Architecting for PHP5 - Why "Runs on PHP5" is not "Written for PHP5"
Architecting for PHP5 - Why "Runs on PHP5" is not "Written for PHP5"Architecting for PHP5 - Why "Runs on PHP5" is not "Written for PHP5"
Architecting for PHP5 - Why "Runs on PHP5" is not "Written for PHP5"ZendCon
 
SQL Query Tuning: The Legend of Drunken Query Master
SQL Query Tuning: The Legend of Drunken Query MasterSQL Query Tuning: The Legend of Drunken Query Master
SQL Query Tuning: The Legend of Drunken Query MasterZendCon
 
ZendCon 2008 Closing Keynote
ZendCon 2008 Closing KeynoteZendCon 2008 Closing Keynote
ZendCon 2008 Closing KeynoteZendCon
 
Top Zend Studio Secrets
Top Zend Studio SecretsTop Zend Studio Secrets
Top Zend Studio SecretsZendCon
 
VIM for (PHP) Programmers
VIM for (PHP) ProgrammersVIM for (PHP) Programmers
VIM for (PHP) ProgrammersZendCon
 
Test Driven Development
Test Driven DevelopmentTest Driven Development
Test Driven DevelopmentZendCon
 
Rickroll To Go With PHP, WURFL, and Other Open Source Tools
Rickroll To Go With PHP, WURFL, and Other Open Source ToolsRickroll To Go With PHP, WURFL, and Other Open Source Tools
Rickroll To Go With PHP, WURFL, and Other Open Source ToolsZendCon
 
PECL Picks - Extensions to make your life better
PECL Picks - Extensions to make your life betterPECL Picks - Extensions to make your life better
PECL Picks - Extensions to make your life betterZendCon
 
Static and Dynamic Analysis at Ning
Static and Dynamic Analysis at NingStatic and Dynamic Analysis at Ning
Static and Dynamic Analysis at NingZendCon
 

More from ZendCon (20)

I18n with PHP 5.3
I18n with PHP 5.3I18n with PHP 5.3
I18n with PHP 5.3
 
Cloud Computing: The Hard Problems Never Go Away
Cloud Computing: The Hard Problems Never Go AwayCloud Computing: The Hard Problems Never Go Away
Cloud Computing: The Hard Problems Never Go Away
 
Magento - a Zend Framework Application
Magento - a Zend Framework ApplicationMagento - a Zend Framework Application
Magento - a Zend Framework Application
 
Enterprise-Class PHP Security
Enterprise-Class PHP SecurityEnterprise-Class PHP Security
Enterprise-Class PHP Security
 
PHP and IBM i - Database Alternatives
PHP and IBM i - Database AlternativesPHP and IBM i - Database Alternatives
PHP and IBM i - Database Alternatives
 
Insights from the Experts: How PHP Leaders Are Transforming High-Impact PHP A...
Insights from the Experts: How PHP Leaders Are Transforming High-Impact PHP A...Insights from the Experts: How PHP Leaders Are Transforming High-Impact PHP A...
Insights from the Experts: How PHP Leaders Are Transforming High-Impact PHP A...
 
Joe Staner Zend Con 2008
Joe Staner Zend Con 2008Joe Staner Zend Con 2008
Joe Staner Zend Con 2008
 
Make your PHP Application Software-as-a-Service (SaaS) Ready with the Paralle...
Make your PHP Application Software-as-a-Service (SaaS) Ready with the Paralle...Make your PHP Application Software-as-a-Service (SaaS) Ready with the Paralle...
Make your PHP Application Software-as-a-Service (SaaS) Ready with the Paralle...
 
DB2 Storage Engine for MySQL and Open Source Applications Session
DB2 Storage Engine for MySQL and Open Source Applications SessionDB2 Storage Engine for MySQL and Open Source Applications Session
DB2 Storage Engine for MySQL and Open Source Applications Session
 
Modernizing i5 Applications
Modernizing i5 ApplicationsModernizing i5 Applications
Modernizing i5 Applications
 
Lesser Known Security Problems in PHP Applications
Lesser Known Security Problems in PHP ApplicationsLesser Known Security Problems in PHP Applications
Lesser Known Security Problems in PHP Applications
 
Architecting for PHP5 - Why "Runs on PHP5" is not "Written for PHP5"
Architecting for PHP5 - Why "Runs on PHP5" is not "Written for PHP5"Architecting for PHP5 - Why "Runs on PHP5" is not "Written for PHP5"
Architecting for PHP5 - Why "Runs on PHP5" is not "Written for PHP5"
 
SQL Query Tuning: The Legend of Drunken Query Master
SQL Query Tuning: The Legend of Drunken Query MasterSQL Query Tuning: The Legend of Drunken Query Master
SQL Query Tuning: The Legend of Drunken Query Master
 
ZendCon 2008 Closing Keynote
ZendCon 2008 Closing KeynoteZendCon 2008 Closing Keynote
ZendCon 2008 Closing Keynote
 
Top Zend Studio Secrets
Top Zend Studio SecretsTop Zend Studio Secrets
Top Zend Studio Secrets
 
VIM for (PHP) Programmers
VIM for (PHP) ProgrammersVIM for (PHP) Programmers
VIM for (PHP) Programmers
 
Test Driven Development
Test Driven DevelopmentTest Driven Development
Test Driven Development
 
Rickroll To Go With PHP, WURFL, and Other Open Source Tools
Rickroll To Go With PHP, WURFL, and Other Open Source ToolsRickroll To Go With PHP, WURFL, and Other Open Source Tools
Rickroll To Go With PHP, WURFL, and Other Open Source Tools
 
PECL Picks - Extensions to make your life better
PECL Picks - Extensions to make your life betterPECL Picks - Extensions to make your life better
PECL Picks - Extensions to make your life better
 
Static and Dynamic Analysis at Ning
Static and Dynamic Analysis at NingStatic and Dynamic Analysis at Ning
Static and Dynamic Analysis at Ning
 

Recently uploaded

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 

Recently uploaded (20)

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 

PHP on IBM i Tutorial

  • 1. IBM i Tutorial ByMike Pavlak – Solution Consultant
  • 2. Introductions Who do we have here?
  • 3. Who is Mike? IBM i PHP Bigot! Solution Consultant: Techie tagalong – Works w/Account Managers Help account managers develop solutions for customers IBM i advocate COMMON Americas Advisory Council Omni User Group IT Director, Development manager, Consultant, Programmer, Ops…
  • 4. Who are you? Around the room Name Job Title Company What are you doing with PHP on IBM i?
  • 5. ZendCon ‘09 – IBM i Events Sessions on Tuesday PHP Faster and Cheaper Sam Hennessy – Zend Technologies Zend Core on IBM i – Security Considerations Tony Cairns – IBM PHP and IBM i - Database Alternatives Erwin Early – IBM Zend Framework on IBM i Alan Seiden – Strategic Business Systems Mazda: Advanced Web Services and PHP Olivier Lépine - Quatrain Technologies
  • 6. ZendCon ‘09 – IBM i Events (cont.) Lunch Tables will be labeled for i5 community networking Yes you can sit somewhere else  IBM i Networking Reception Immediately following the “Meet the Team” Wednesday evening meet in the hall and head out Dinner is on you, but beers are on Zend! Gordon Biersch (note in your bag or see me!)
  • 7. Review IBM i Product Line from Zend Zend Core (PHP Runtime) Still free Silver support for one year after Feb 2009 Zend Studio 7.0 for IBM i (IDE) Still free Basic support for one year after Feb 2009 Zend Platform (Box of tools) Annual subscription license Support upgrades available (Throat to choke!) Gold and Platinum
  • 8. What’s new? Zend Server for IBM i New product that combines features from Core and Platform Single stack for all features Alignment with other platforms! One Apache server, not two! IBM server stays PASE server goes. Still free version for i5 customers (Community Edition) Currently in QA, beta soon GA after that
  • 9. Current Architecture System i5 i5/OS URL: http://myproxy:89/core/registration.php PASE Zend Core PHP file HTTP:89 Server (Reverse Proxy) Request HTTP:8000 Server Response PHP Module HTML + PHP DB2 UDB Zend Platform
  • 10. Agenda Toolkit functions Studio Integration Break #1 Zend Server Open Source on IBM i Break #2 Mix & Match Procedural PHP and Zend Framework
  • 11. Toolkit functions How we talk to IBM i from PHP Scripts
  • 12. Toolkit functions to be reviewed Differences between connections System Values Data Area Library List Object Listing Program Call
  • 13. Survey question How many folks have used i5 functions? Which ones? What are we missing?
  • 14. Connections, what’s the diff? i5_connect Access OS features Access database features Only available on i5, sorry Linux  db2_connect Access database features only Better performance Great for ubiquitous development
  • 17. DB2 Connection Get doc at http://php.net/manual/en/book.ibm-db2.php
  • 18. DB2 Connection i5 options listed here too!
  • 21. System value Build a “Manager Shortcut” menu Key pieces of info for software installation & BP’s Display via browser
  • 24. Data Area Use i5 to connect to IBM i DB2 Connect will only take you to the Database
  • 26. Library List… I5_connect Get the data area without a library reference
  • 27. Data Area with library list
  • 28. Object Listing Given a library Show objects in the library Think of the list of objects as a result set from SQL Standard aproach Create list Read list This works for spooled files, active jobs, etc.
  • 31. A brief word about CSS Cascading Style Sheets Very powerful in maintaining consistent look and feel of elements across applications Will continue to use sample.css through presentation
  • 32. Studio Integration How Zend Platform works…
  • 33. Debugging for the rest of us… Very few slides Lots of demo Debug Platform More…
  • 34. Debug rules Must use port 8000! Tunnel helps a LOT Browser integration We’ll look at configuring debug in Zend Studio Then look at Zend Platform integration!
  • 35. Break Be back in 10 minutes
  • 36. Zend Server for IBM i The next generation of the Zend Stack for IBM i
  • 37. The next generation of IBM i Zend Stack Improvements: Faster, How fast? I can’t tell you…but it is faster! One less Apache server (Yay!) More powerful JOBQ function Alignment with the other product lines Lot’s of tweaks and enhancements Private Beta starting soon Public beta immediately afterward
  • 38. Open Source on IBM i A quick look at PHPMyAdmin
  • 39. Number 2 reason folks look at PHP on IBM i Agenda Explore benefits of open source on IBM i Ponder a short list of popular applications Examine the components for installation Review the installation steps Walk through a live implementation
  • 40. phpMyAdmin Fabulous utility for accessing MySQL Data on ANY platform Written completely in PHP You must have MySQL installed Runs on IBM i…but… …not supported on IBM i DBU for MySQL!
  • 41. What we will do with phpMyAdmin Demo the product Walk through the install steps Demo a live installation
  • 42. phpMyAdmin Demo… http://cuper1.zend.com:89/phpmyadmin Tour MIKEY1 Create table More features
  • 43. phpMyAdmin – Installation process Pre-requisties: Zend Core for i5/OS MySQL version 5 or greater V5R4 or V6R1 Agenda Get file Move to IBM i Un-tar Configure Play
  • 44. Get phpMyAdmin file to IBM i Go to the host website, download current version http://www.phpmyadmin.net Click Download at top of screen Select version appropriate for you, I chose English tar.gz
  • 45. Compression Compression and archive… TAR was done first Then GZIP was done. So…. You need to work in reverse Unzip the file on your workstation (PKZip, etc.) Move the file phpMyAdmin-3.2.2-english.tar to the IFS doc root Then untar on the i5
  • 46. Place file into document root
  • 47. Command to untar Tar = Tap Archive Use QP2TERM interfac to untar Call QP2TERM Change to the document root CD /www/zendcore/htdocs
  • 50. After the tar The screen will roll quite a bit then you get the $ Now create a symbolic link to the directory for ease of use ln -s ./phpMyAdmin-3.2.2-english phpMyAdmin
  • 51. Create the config file The config file tells phpMyAdmin where everything is. Create manually Use automated feature Move to the phpMyAdmin directory cdphpmyadmin Create the directory & set security mkdirconfig chmodo+rwconfig
  • 52. Results of directory and security changes
  • 53. Go to browser to run config http://your_host/path/to/phpMyAdmin/setup/
  • 54. Scroll down to config options Click the New server button…
  • 55. Enter server specific info Type a description of the server name Leave localhost for hostname…click SAVE
  • 56. Finish options Select language, etc. And click save again
  • 57. Copy the config file to phpMyAdmin directory You just created a config file in directory config Move the file to the phpMyAdmin directory for use mvconfig/config.inc.php . chmod o-rwconfig.inc.php
  • 58. Head to the phpMyAdmin login screen http://yourservername/phpMyAdmin/
  • 59. Add user to MySQL cd /usr/local/mysql/bin Mysql –u root use mysql select user, password from user;
  • 61. After the addition Add the user: CREATE USER ‘mpavlak'@‘%' IDENTIFIED BY ‘test1'; GRANT SELECT,INSERT,UPDATE,DELETE ON *.* TO ‘mpavlak'@’%’; Or GRANT ALL ON *.* TO ‘mpavlak'@’%’;
  • 63. Break Be back in 10 minutes
  • 64. Mix & match Procedural PHP & Zend Framework
  • 65. Procedural PHP and Zend Framework Agenda Look at a procedural PHP application that gets order info Look at the info in a web page Move info to PDF and distribute Think ZF is hard? Guess again!
  • 66. Zend_PDF Check out the Zend Framework website http://www.zendframework.com/manual/en/zend.pdf.html Look at an example that reads DB2 data and produces a PDF
  • 67. Agenda Read order detail file Instantiate a PDF object Update the object with the contents of the order Write the PDF Dispose of the object Admire our work!
  • 68. Zend_PDF Component of Zend Framework Comes with Zend Core for i5 FREE!!! ZF is built by the community, for the community Documentation at: http://framework.zend.com/manual/en/zend.pdf.html
  • 69. Build the content Read through the detail file…
  • 70. Object & heading Create object Set heading
  • 71. Body of print Develop line detail Output the PDF o the IFS
  • 72. Windows Explorer view of IFS Once in the IFS you do what you want FTP, email, cms, etc…
  • 74. Zend_PDF Documentation Check out Zend_PDF doc at ZendFramework.com Make it look pretty Integrate into procedural development Learn a little OO as you go Come to Zend for more training Higher Structures Zend Framework Certification prep More…
  • 75. Where to get more information Zend and other places
  • 76. Free code! PHPClasses.org Hotscript.com Sourceforge.net Php.net Thefreecountry.com/php
  • 77. Support Zend.com Forums Knowledgebase Webcasts Downloads Developer Zone Product information & documentation Paid products
  • 78. New book, new printing, same great stuff! Kevin Schroeder from Zend’s Global Services Group with Jeff Olen, co-author of… Get yours at MCPressonline or at fine bookstores everywhere
  • 79. Mike’s blog! http://mikepavlak/blogspot.com Aggregated at http://planet-i.org/
  • 80. IBM i Events…reminder!!! Sessions on Tuesday PHP Faster and Cheaper Sam Hennessy – Zend Technologies Zend Core on IBM i – Security Considerations Tony Cairns – IBM PHP and IBM i - Database Alternatives Erwin Early – IBM Zend Framework on IBM i Alan Seiden – Strategic Business Systems Mazda: Advanced Web Services and PHP Olivier Lépine - Quatrain Technologies
  • 81. IBM i Events (cont.) Lunch Tables will be labeled for i5 community networking Yes you can sit somewhere else  IBM i Networking Reception Immediately following the “Meet the Team” Wednesday evening meet in the hall and head out Dinner is on you, but beers are on Zend! Gordon Biersch (note in your bag or see me!)
  • 82. Please enjoy the Conference! Thank you!!!