SlideShare a Scribd company logo
IBM i TutorialByMike Pavlak – Solution Consultant
IntroductionsWho 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 customersIBM i advocateCOMMON Americas Advisory CouncilOmni User GroupIT Director, Development manager, Consultant, Programmer, Ops…
Who are you?Around the roomNameJob TitleCompanyWhat are you doing with PHP on IBM i?
ZendCon ‘09 – IBM i EventsSessions on TuesdayPHP Faster and CheaperSam Hennessy – Zend TechnologiesZend Core on IBM i – Security ConsiderationsTony Cairns – IBM PHP and IBM i - Database AlternativesErwin Early – IBMZend Framework on IBM iAlan Seiden – Strategic Business SystemsMazda: Advanced Web Services and PHPOlivier Lépine  - Quatrain Technologies
ZendCon ‘09 – IBM i Events (cont.)LunchTables will be labeled for i5 community networkingYes you can sit somewhere else IBM i Networking Reception Immediately following the “Meet the Team”Wednesday evening meet in the hall and head outDinner is on you, but beers are on Zend!  Gordon Biersch (note in your bag or see me!)
Review IBM i Product Line from ZendZend Core (PHP Runtime)Still free Silver support for one year after Feb 2009Zend Studio 7.0 for IBM i (IDE)Still freeBasic support for one year after Feb 2009Zend Platform (Box of tools)Annual subscription licenseSupport upgrades available (Throat to choke!)Gold and Platinum
What’s new?Zend Server for IBM i New product that combines features from Core and PlatformSingle stack for all featuresAlignment 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 ArchitectureSystem i5i5/OSURL: http://myproxy:89/core/registration.php           PASEZend CorePHP fileHTTP:89Server(Reverse Proxy)RequestHTTP:8000ServerResponsePHPModuleHTML + PHP           DB2 UDBZend Platform
AgendaToolkit functionsStudio IntegrationBreak #1Zend ServerOpen Source on IBM iBreak #2Mix & Match Procedural PHP and Zend Framework
Toolkit functionsHow we talk to IBM i from PHP Scripts
Toolkit functions to be reviewedDifferences between connectionsSystem ValuesData AreaLibrary ListObject ListingProgram Call
Survey questionHow many folks have used i5 functions?Which ones?What are we missing?
Connections, what’s the diff?i5_connectAccess OS features Access database featuresOnly available on i5, sorry Linux db2_connectAccess database features onlyBetter performance Great for ubiquitous development
Connection successful
Connection error
DB2 ConnectionGet doc at http://php.net/manual/en/book.ibm-db2.php
DB2 Connectioni5 options listed here too!
DB2 Connection: Good
DB2 Connection: Bad
System valueBuild a “Manager Shortcut” menuKey pieces of info for software installation & BP’sDisplay via browser
System Value Code
System Value Display
Data AreaUse i5 to connect to IBM iDB2 Connect will only take you to the Database
Data Area Access
Library List…I5_connectGet the data area without a library reference
Data Area with library list
Object ListingGiven a libraryShow objects in the libraryThink of the list of objects as a result set from SQLStandard aproachCreate listRead listThis works for spooled files, active jobs, etc.
Object listing code
Object list output
A brief word about CSSCascading Style SheetsVery powerful in maintaining consistent look and feel of elements across applicationsWill continue to use sample.css through presentation
Studio IntegrationHow Zend Platform works…
Debugging for the rest of us…Very few slidesLots of demoDebugPlatformMore…
Debug rulesMust use port 8000!Tunnel helps a LOTBrowser integrationWe’ll look at configuring debug in Zend StudioThen look at Zend Platform integration!
Break Be back in 10 minutes
Zend Server for IBM iThe next generation of the Zend Stack for IBM i
The next generation of IBM i Zend StackImprovements:Faster, How fast?  I can’t tell you…but it is faster!One less Apache server (Yay!)More powerful JOBQ functionAlignment with the other product linesLot’s of tweaks and enhancementsPrivate Beta starting soonPublic beta immediately afterward
Open Source on IBM iA quick look at PHPMyAdmin
Number 2 reason folks look at PHP on IBM iAgendaExplore benefits of open source on IBM iPonder a short list of popular applications Examine the components for installationReview the installation stepsWalk through a live implementation
phpMyAdminFabulous utility for accessing MySQL Data on ANY platformWritten completely in PHPYou must have MySQL installedRuns on IBM i…but……not supported on IBM iDBU for MySQL!
What we will do with phpMyAdminDemo the productWalk through the install stepsDemo a live installation
phpMyAdminDemo…http://cuper1.zend.com:89/phpmyadminTour MIKEY1Create tableMore features
phpMyAdmin – Installation processPre-requisties:Zend Core for i5/OSMySQL version 5 or greaterV5R4 or V6R1AgendaGet fileMove to IBM iUn-tarConfigurePlay
Get phpMyAdmin file to IBM iGo to the host website, download current versionhttp://www.phpmyadmin.netClick Download at top of screenSelect version appropriate for you, I chose English tar.gz
CompressionCompression and archive…TAR was done firstThen GZIP was done.  So….You need to work in reverseUnzip the file on your workstation (PKZip, etc.)Move the file phpMyAdmin-3.2.2-english.tar to the IFS doc rootThen untar on the i5
Place file into document root
Command to untarTar = Tap ArchiveUse QP2TERM interfac to untarCall QP2TERMChange to the document rootCD /www/zendcore/htdocs
Open PASE Shell
Open PASE Shell
After the tarThe screen will roll quite a bit then you get the $Now create a symbolic link to the directory for ease of useln -s ./phpMyAdmin-3.2.2-english  phpMyAdmin
Create the config fileThe config file tells phpMyAdmin where everything is.  Create manuallyUse automated featureMove to the phpMyAdmin directorycdphpmyadminCreate the directory & set securitymkdirconfigchmodo+rwconfig
Results of directory and security changes
Go to browser to run confighttp://your_host/path/to/phpMyAdmin/setup/
Scroll down to config optionsClick the New server button…
Enter server specific infoType a description of the server nameLeave localhost for hostname…click SAVE
Finish optionsSelect language, etc.  And click save again
Copy the config file to phpMyAdmin directoryYou just created a config file in directory configMove the file to the phpMyAdmin directory for usemvconfig/config.inc.php .chmod o-rwconfig.inc.php
Head to the phpMyAdmin login screenhttp://yourservername/phpMyAdmin/
Add user to MySQLcd /usr/local/mysql/binMysql –u rootuse mysqlselect user, password from user;
Before the addition
After the additionAdd the user:CREATE USER ‘mpavlak'@‘%' IDENTIFIED BY ‘test1';GRANT SELECT,INSERT,UPDATE,DELETE ON *.* TO ‘mpavlak'@’%’;OrGRANT ALL ON *.* TO ‘mpavlak'@’%’;
And we’re in!
Break Be back in 10 minutes
Mix & matchProcedural PHP & Zend Framework
Procedural PHP and Zend FrameworkAgendaLook at a procedural PHP application that gets order infoLook at the info in a web pageMove info to PDF and distributeThink ZF is hard?  Guess again!
Zend_PDFCheck out the Zend Framework websitehttp://www.zendframework.com/manual/en/zend.pdf.htmlLook at an example that reads DB2 data and produces a PDF
AgendaRead order detail fileInstantiate a PDF objectUpdate the object with the contents of the orderWrite the PDFDispose of the objectAdmire our work!
Zend_PDFComponent of Zend FrameworkComes with Zend Core for i5FREE!!!ZF is built by the community, for the communityDocumentation at: http://framework.zend.com/manual/en/zend.pdf.html
Build the contentRead through the detail file…
Object & headingCreate object Set heading
Body of printDevelop line detail Output the PDF o the IFS
Windows Explorer view of IFSOnce in the IFS you do what you wantFTP, email, cms, etc…
The PDF!
Zend_PDF DocumentationCheck out Zend_PDF doc at ZendFramework.comMake it look prettyIntegrate into procedural developmentLearn a little OO as you goCome to Zend for more trainingHigher StructuresZend FrameworkCertification prepMore…
Where to get more informationZend and other places
Free code!PHPClasses.orgHotscript.comSourceforge.netPhp.netThefreecountry.com/php
SupportZend.comForumsKnowledgebaseWebcastsDownloads Developer ZoneProduct information & documentationPaid products
New book, new printing, same great stuff!Kevin Schroeder from Zend’s Global Services Groupwith Jeff Olen, co-author of…Get yours at MCPressonlineor at fine bookstores everywhere
Mike’s blog!http://mikepavlak/blogspot.comAggregated at http://planet-i.org/
IBM i Events…reminder!!!Sessions on TuesdayPHP Faster and CheaperSam Hennessy – Zend TechnologiesZend Core on IBM i – Security ConsiderationsTony Cairns – IBM PHP and IBM i - Database AlternativesErwin Early – IBMZend Framework on IBM iAlan Seiden – Strategic Business SystemsMazda: Advanced Web Services and PHPOlivier Lépine  - Quatrain Technologies
IBM i Events (cont.)LunchTables will be labeled for i5 community networkingYes you can sit somewhere else IBM i Networking Reception Immediately following the “Meet the Team”Wednesday evening meet in the hall and head outDinner is on you, but beers are on Zend!  Gordon Biersch (note in your bag or see me!)
Please enjoy the Conference!Thank you!!!
Ad

Recommended

Zend_Tool: Practical use and Extending
Zend_Tool: Practical use and Extending
ZendCon
 
PHP and Platform Independance in the Cloud
PHP and Platform Independance in the Cloud
ZendCon
 
Zend Core on IBM i - Security Considerations
Zend Core on IBM i - Security Considerations
ZendCon
 
PHP on Windows - What's New
PHP on Windows - What's New
ZendCon
 
Getting started with PHP on IBM i
Getting started with PHP on IBM i
Zend by Rogue Wave Software
 
Performance tuning with zend framework
Performance tuning with zend framework
Alan Seiden
 
PHP Toolkit from Zend and IBM: Open Source on IBM i
PHP Toolkit from Zend and IBM: Open Source on IBM i
Alan Seiden
 
DB2 and PHP in Depth on IBM i
DB2 and PHP in Depth on IBM i
Alan Seiden
 
Strategic Modernization with PHP on IBM i
Strategic Modernization with PHP on IBM i
Alan Seiden
 
Create a welcoming development environment on IBM i
Create a welcoming development environment on IBM i
Alan Seiden
 
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 Framework
Alan Seiden
 
PHP Batch Jobs on IBM i
PHP Batch Jobs on IBM i
Alan Seiden
 
From Zero to ZF: Your first zend framework project on ibm i
From Zero to ZF: Your first zend framework project on ibm i
Alan Seiden
 
Browser tools that make web development easier
Browser tools that make web development easier
Alan Seiden
 
Php Dependency Management with Composer ZendCon 2016
Php Dependency Management with Composer ZendCon 2016
Clark Everetts
 
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 Developers
Alan Seiden
 
Zend con 2016 bdd with behat for beginners
Zend con 2016 bdd with behat for beginners
Adam Englander
 
PHP Installed on IBM i - the Nickel Tour
PHP Installed on IBM i - the Nickel Tour
Rod Flohr
 
Running open source PHP applications on you IBM i
Running open source PHP applications on you IBM i
Proximity Group
 
Install MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and more
Rod Flohr
 
Require js training
Require js training
Dr. Awase Khirni Syed
 
Zend Framework 2, What's new, Confoo 2011
Zend Framework 2, What's new, Confoo 2011
Bachkoutou Toutou
 
Web Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the future
Toru Kawamura
 
Hey My Web App is Slow Where is the Problem
Hey My Web App is Slow Where is the Problem
ColdFusionConference
 
Zend Framework
Zend Framework
John Coggeshall
 
MySQL Manchester TT - Replication Features
MySQL Manchester TT - Replication Features
Mark Swarbrick
 
MySQL Optimizer Overview
MySQL Optimizer Overview
Olav Sandstå
 
MySQL in your laptop
MySQL in your laptop
Giuseppe Maxia
 

More Related Content

What's hot (19)

Strategic Modernization with PHP on IBM i
Strategic Modernization with PHP on IBM i
Alan Seiden
 
Create a welcoming development environment on IBM i
Create a welcoming development environment on IBM i
Alan Seiden
 
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 Framework
Alan Seiden
 
PHP Batch Jobs on IBM i
PHP Batch Jobs on IBM i
Alan Seiden
 
From Zero to ZF: Your first zend framework project on ibm i
From Zero to ZF: Your first zend framework project on ibm i
Alan Seiden
 
Browser tools that make web development easier
Browser tools that make web development easier
Alan Seiden
 
Php Dependency Management with Composer ZendCon 2016
Php Dependency Management with Composer ZendCon 2016
Clark Everetts
 
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 Developers
Alan Seiden
 
Zend con 2016 bdd with behat for beginners
Zend con 2016 bdd with behat for beginners
Adam Englander
 
PHP Installed on IBM i - the Nickel Tour
PHP Installed on IBM i - the Nickel Tour
Rod Flohr
 
Running open source PHP applications on you IBM i
Running open source PHP applications on you IBM i
Proximity Group
 
Install MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and more
Rod Flohr
 
Require js training
Require js training
Dr. Awase Khirni Syed
 
Zend Framework 2, What's new, Confoo 2011
Zend Framework 2, What's new, Confoo 2011
Bachkoutou Toutou
 
Web Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the future
Toru Kawamura
 
Hey My Web App is Slow Where is the Problem
Hey My Web App is Slow Where is the Problem
ColdFusionConference
 
Zend Framework
Zend Framework
John Coggeshall
 
Strategic Modernization with PHP on IBM i
Strategic Modernization with PHP on IBM i
Alan Seiden
 
Create a welcoming development environment on IBM i
Create a welcoming development environment on IBM i
Alan Seiden
 
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 Framework
Alan Seiden
 
PHP Batch Jobs on IBM i
PHP Batch Jobs on IBM i
Alan Seiden
 
From Zero to ZF: Your first zend framework project on ibm i
From Zero to ZF: Your first zend framework project on ibm i
Alan Seiden
 
Browser tools that make web development easier
Browser tools that make web development easier
Alan Seiden
 
Php Dependency Management with Composer ZendCon 2016
Php Dependency Management with Composer ZendCon 2016
Clark Everetts
 
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 Developers
Alan Seiden
 
Zend con 2016 bdd with behat for beginners
Zend con 2016 bdd with behat for beginners
Adam Englander
 
PHP Installed on IBM i - the Nickel Tour
PHP Installed on IBM i - the Nickel Tour
Rod Flohr
 
Running open source PHP applications on you IBM i
Running open source PHP applications on you IBM i
Proximity Group
 
Install MariaDB on IBM i - Tips, troubleshooting, and more
Install MariaDB on IBM i - Tips, troubleshooting, and more
Rod Flohr
 
Zend Framework 2, What's new, Confoo 2011
Zend Framework 2, What's new, Confoo 2011
Bachkoutou Toutou
 
Web Clients for Ruby and What they should be in the future
Web Clients for Ruby and What they should be in the future
Toru Kawamura
 
Hey My Web App is Slow Where is the Problem
Hey My Web App is Slow Where is the Problem
ColdFusionConference
 

Viewers also liked (20)

MySQL Manchester TT - Replication Features
MySQL Manchester TT - Replication Features
Mark Swarbrick
 
MySQL Optimizer Overview
MySQL Optimizer Overview
Olav Sandstå
 
MySQL in your laptop
MySQL in your laptop
Giuseppe Maxia
 
MySQL Manchester TT - Security
MySQL Manchester TT - Security
Mark Swarbrick
 
Framework Shootout
Framework Shootout
ZendCon
 
Oracle Compute Cloud Service快速实践
Oracle Compute Cloud Service快速实践
Zhaoyang Wang
 
MySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats new
Mark Swarbrick
 
Tiery Eyed
Tiery Eyed
ZendCon
 
MySQL Tech Tour 2015 - 5.7 Connector/J/Net
MySQL Tech Tour 2015 - 5.7 Connector/J/Net
Mark Swarbrick
 
Oracle Compute Cloud Service介绍
Oracle Compute Cloud Service介绍
Zhaoyang Wang
 
Script it
Script it
Giuseppe Maxia
 
A Storage Story #ChefConf2013
A Storage Story #ChefConf2013
Kyle Bader
 
Why MySQL High Availability Matters
Why MySQL High Availability Matters
Mark Swarbrick
 
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 Scalability
ZendCon
 
Application Diagnosis with Zend Server Tracing
Application Diagnosis with Zend Server Tracing
ZendCon
 
Oracle cloud 使用云市场快速搭建小型电商网站
Oracle cloud 使用云市场快速搭建小型电商网站
Zhaoyang Wang
 
Planning for Synchronization with Browser-Local Databases
Planning for Synchronization with Browser-Local Databases
ZendCon
 
Digital Identity
Digital Identity
ZendCon
 
MySQL Intro JSON NoSQL
MySQL Intro JSON NoSQL
Mark Swarbrick
 
MySQL Manchester TT - Replication Features
MySQL Manchester TT - Replication Features
Mark Swarbrick
 
MySQL Optimizer Overview
MySQL Optimizer Overview
Olav Sandstå
 
MySQL Manchester TT - Security
MySQL Manchester TT - Security
Mark Swarbrick
 
Framework Shootout
Framework Shootout
ZendCon
 
Oracle Compute Cloud Service快速实践
Oracle Compute Cloud Service快速实践
Zhaoyang Wang
 
MySQL Manchester TT - 5.7 Whats new
MySQL Manchester TT - 5.7 Whats new
Mark Swarbrick
 
Tiery Eyed
Tiery Eyed
ZendCon
 
MySQL Tech Tour 2015 - 5.7 Connector/J/Net
MySQL Tech Tour 2015 - 5.7 Connector/J/Net
Mark Swarbrick
 
Oracle Compute Cloud Service介绍
Oracle Compute Cloud Service介绍
Zhaoyang Wang
 
A Storage Story #ChefConf2013
A Storage Story #ChefConf2013
Kyle Bader
 
Why MySQL High Availability Matters
Why MySQL High Availability Matters
Mark Swarbrick
 
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 Scalability
ZendCon
 
Application Diagnosis with Zend Server Tracing
Application Diagnosis with Zend Server Tracing
ZendCon
 
Oracle cloud 使用云市场快速搭建小型电商网站
Oracle cloud 使用云市场快速搭建小型电商网站
Zhaoyang Wang
 
Planning for Synchronization with Browser-Local Databases
Planning for Synchronization with Browser-Local Databases
ZendCon
 
Digital Identity
Digital Identity
ZendCon
 
MySQL Intro JSON NoSQL
MySQL Intro JSON NoSQL
Mark Swarbrick
 
Ad

Similar to PHP on IBM i Tutorial (20)

How To Start Up With PHP In IBM i
How To Start Up With PHP In IBM i
Sam Pinkhasov
 
How To Start Up With Php In Ibm I
How To Start Up With Php In Ibm I
Alex Frenkel
 
What's new with Zend server
What's new with Zend server
COMMON Europe
 
Getting started with PHP on IBM i
Getting started with PHP on IBM i
COMMON Europe
 
Introduction to My SQL
Introduction to My SQL
COMMON Europe
 
A Tale of Two Toolkits
A Tale of Two Toolkits
Zend by Rogue Wave Software
 
Integrating PHP With System-i using Web Services
Integrating PHP With System-i using Web Services
Ivo Jansch
 
Zend Framework Workshop
Zend Framework Workshop
10n Software, LLC
 
Performance tuning PHP on IBMi
Performance tuning PHP on IBMi
Zend by Rogue Wave Software
 
Introduction to PHP (Casino Affiliate Convention 2008)
Introduction to PHP (Casino Affiliate Convention 2008)
Ivo Jansch
 
MVC Frameworks for building PHP Web Applications
MVC Frameworks for building PHP Web Applications
Vforce Infotech
 
Zend Framework 1.8 workshop
Zend Framework 1.8 workshop
Nick Belhomme
 
Microsoft TechDays 2011 - PHP on Windows
Microsoft TechDays 2011 - PHP on Windows
Enterprise PHP Center
 
green
green
alind tiwari
 
Greenathan
Greenathan
alind tiwari
 
Greenathan
Greenathan
alind tiwari
 
latest slide
latest slide
alind tiwari
 
latest slide
latest slide
alind tiwari
 
dfgdfgf
dfgdfgf
alind tiwari
 
latest slide
latest slide
alind tiwari
 
How To Start Up With PHP In IBM i
How To Start Up With PHP In IBM i
Sam Pinkhasov
 
How To Start Up With Php In Ibm I
How To Start Up With Php In Ibm I
Alex Frenkel
 
What's new with Zend server
What's new with Zend server
COMMON Europe
 
Getting started with PHP on IBM i
Getting started with PHP on IBM i
COMMON Europe
 
Introduction to My SQL
Introduction to My SQL
COMMON Europe
 
Integrating PHP With System-i using Web Services
Integrating PHP With System-i using Web Services
Ivo Jansch
 
Introduction to PHP (Casino Affiliate Convention 2008)
Introduction to PHP (Casino Affiliate Convention 2008)
Ivo Jansch
 
MVC Frameworks for building PHP Web Applications
MVC Frameworks for building PHP Web Applications
Vforce Infotech
 
Zend Framework 1.8 workshop
Zend Framework 1.8 workshop
Nick Belhomme
 
Microsoft TechDays 2011 - PHP on Windows
Microsoft TechDays 2011 - PHP on Windows
Enterprise PHP Center
 
Ad

More from ZendCon (20)

I18n with PHP 5.3
I18n with PHP 5.3
ZendCon
 
Cloud Computing: The Hard Problems Never Go Away
Cloud Computing: The Hard Problems Never Go Away
ZendCon
 
Magento - a Zend Framework Application
Magento - a Zend Framework Application
ZendCon
 
Enterprise-Class PHP Security
Enterprise-Class PHP Security
ZendCon
 
PHP and IBM i - Database Alternatives
PHP and IBM i - Database Alternatives
ZendCon
 
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 2008
ZendCon
 
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 Session
ZendCon
 
Modernizing i5 Applications
Modernizing i5 Applications
ZendCon
 
Lesser Known Security Problems in PHP Applications
Lesser Known Security Problems in PHP Applications
ZendCon
 
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 Master
ZendCon
 
ZendCon 2008 Closing Keynote
ZendCon 2008 Closing Keynote
ZendCon
 
Top Zend Studio Secrets
Top Zend Studio Secrets
ZendCon
 
VIM for (PHP) Programmers
VIM for (PHP) Programmers
ZendCon
 
Test Driven Development
Test Driven Development
ZendCon
 
Rickroll To Go With PHP, WURFL, and Other Open Source Tools
Rickroll To Go With PHP, WURFL, and Other Open Source Tools
ZendCon
 
PECL Picks - Extensions to make your life better
PECL Picks - Extensions to make your life better
ZendCon
 
Static and Dynamic Analysis at Ning
Static and Dynamic Analysis at Ning
ZendCon
 
I18n with PHP 5.3
I18n with PHP 5.3
ZendCon
 
Cloud Computing: The Hard Problems Never Go Away
Cloud Computing: The Hard Problems Never Go Away
ZendCon
 
Magento - a Zend Framework Application
Magento - a Zend Framework Application
ZendCon
 
Enterprise-Class PHP Security
Enterprise-Class PHP Security
ZendCon
 
PHP and IBM i - Database Alternatives
PHP and IBM i - Database Alternatives
ZendCon
 
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 2008
ZendCon
 
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 Session
ZendCon
 
Modernizing i5 Applications
Modernizing i5 Applications
ZendCon
 
Lesser Known Security Problems in PHP Applications
Lesser Known Security Problems in PHP Applications
ZendCon
 
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 Master
ZendCon
 
ZendCon 2008 Closing Keynote
ZendCon 2008 Closing Keynote
ZendCon
 
Top Zend Studio Secrets
Top Zend Studio Secrets
ZendCon
 
VIM for (PHP) Programmers
VIM for (PHP) Programmers
ZendCon
 
Test Driven Development
Test Driven Development
ZendCon
 
Rickroll To Go With PHP, WURFL, and Other Open Source Tools
Rickroll To Go With PHP, WURFL, and Other Open Source Tools
ZendCon
 
PECL Picks - Extensions to make your life better
PECL Picks - Extensions to make your life better
ZendCon
 
Static and Dynamic Analysis at Ning
Static and Dynamic Analysis at Ning
ZendCon
 

Recently uploaded (20)

cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
 
Daily Lesson Log MATATAG ICT TEchnology 8
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
The Future of Technology: 2025-2125 by Saikat Basu.pdf
The Future of Technology: 2025-2125 by Saikat Basu.pdf
Saikat Basu
 
Mastering AI Workflows with FME by Mark Döring
Mastering AI Workflows with FME by Mark Döring
Safe Software
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
10 Key Challenges for AI within the EU Data Protection Framework.pdf
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
 
Daily Lesson Log MATATAG ICT TEchnology 8
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
The Future of Technology: 2025-2125 by Saikat Basu.pdf
The Future of Technology: 2025-2125 by Saikat Basu.pdf
Saikat Basu
 
Mastering AI Workflows with FME by Mark Döring
Mastering AI Workflows with FME by Mark Döring
Safe Software
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
Cyber Defense Matrix Workshop - RSA Conference
Cyber Defense Matrix Workshop - RSA Conference
Priyanka Aash
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 
The Future of Product Management in AI ERA.pdf
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
10 Key Challenges for AI within the EU Data Protection Framework.pdf
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
 
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
Tech-ASan: Two-stage check for Address Sanitizer - Yixuan Cao.pdf
caoyixuan2019
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
 
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 

PHP on IBM i Tutorial

  • 1. IBM i TutorialByMike Pavlak – Solution Consultant
  • 3. Who is Mike?IBM i PHP Bigot!Solution Consultant: Techie tagalong – Works w/Account Managers Help account managers develop solutions for customersIBM i advocateCOMMON Americas Advisory CouncilOmni User GroupIT Director, Development manager, Consultant, Programmer, Ops…
  • 4. Who are you?Around the roomNameJob TitleCompanyWhat are you doing with PHP on IBM i?
  • 5. ZendCon ‘09 – IBM i EventsSessions on TuesdayPHP Faster and CheaperSam Hennessy – Zend TechnologiesZend Core on IBM i – Security ConsiderationsTony Cairns – IBM PHP and IBM i - Database AlternativesErwin Early – IBMZend Framework on IBM iAlan Seiden – Strategic Business SystemsMazda: Advanced Web Services and PHPOlivier Lépine - Quatrain Technologies
  • 6. ZendCon ‘09 – IBM i Events (cont.)LunchTables will be labeled for i5 community networkingYes you can sit somewhere else IBM i Networking Reception Immediately following the “Meet the Team”Wednesday evening meet in the hall and head outDinner is on you, but beers are on Zend! Gordon Biersch (note in your bag or see me!)
  • 7. Review IBM i Product Line from ZendZend Core (PHP Runtime)Still free Silver support for one year after Feb 2009Zend Studio 7.0 for IBM i (IDE)Still freeBasic support for one year after Feb 2009Zend Platform (Box of tools)Annual subscription licenseSupport 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 PlatformSingle stack for all featuresAlignment 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 ArchitectureSystem i5i5/OSURL: http://myproxy:89/core/registration.php PASEZend CorePHP fileHTTP:89Server(Reverse Proxy)RequestHTTP:8000ServerResponsePHPModuleHTML + PHP DB2 UDBZend Platform
  • 10. AgendaToolkit functionsStudio IntegrationBreak #1Zend ServerOpen Source on IBM iBreak #2Mix & Match Procedural PHP and Zend Framework
  • 11. Toolkit functionsHow we talk to IBM i from PHP Scripts
  • 12. Toolkit functions to be reviewedDifferences between connectionsSystem ValuesData AreaLibrary ListObject ListingProgram Call
  • 13. Survey questionHow many folks have used i5 functions?Which ones?What are we missing?
  • 14. Connections, what’s the diff?i5_connectAccess OS features Access database featuresOnly available on i5, sorry Linux db2_connectAccess database features onlyBetter performance Great for ubiquitous development
  • 17. DB2 ConnectionGet doc at http://php.net/manual/en/book.ibm-db2.php
  • 18. DB2 Connectioni5 options listed here too!
  • 21. System valueBuild a “Manager Shortcut” menuKey pieces of info for software installation & BP’sDisplay via browser
  • 24. Data AreaUse i5 to connect to IBM iDB2 Connect will only take you to the Database
  • 26. Library List…I5_connectGet the data area without a library reference
  • 27. Data Area with library list
  • 28. Object ListingGiven a libraryShow objects in the libraryThink of the list of objects as a result set from SQLStandard aproachCreate listRead listThis works for spooled files, active jobs, etc.
  • 31. A brief word about CSSCascading Style SheetsVery powerful in maintaining consistent look and feel of elements across applicationsWill continue to use sample.css through presentation
  • 32. Studio IntegrationHow Zend Platform works…
  • 33. Debugging for the rest of us…Very few slidesLots of demoDebugPlatformMore…
  • 34. Debug rulesMust use port 8000!Tunnel helps a LOTBrowser integrationWe’ll look at configuring debug in Zend StudioThen look at Zend Platform integration!
  • 35. Break Be back in 10 minutes
  • 36. Zend Server for IBM iThe next generation of the Zend Stack for IBM i
  • 37. The next generation of IBM i Zend StackImprovements:Faster, How fast? I can’t tell you…but it is faster!One less Apache server (Yay!)More powerful JOBQ functionAlignment with the other product linesLot’s of tweaks and enhancementsPrivate Beta starting soonPublic beta immediately afterward
  • 38. Open Source on IBM iA quick look at PHPMyAdmin
  • 39. Number 2 reason folks look at PHP on IBM iAgendaExplore benefits of open source on IBM iPonder a short list of popular applications Examine the components for installationReview the installation stepsWalk through a live implementation
  • 40. phpMyAdminFabulous utility for accessing MySQL Data on ANY platformWritten completely in PHPYou must have MySQL installedRuns on IBM i…but……not supported on IBM iDBU for MySQL!
  • 41. What we will do with phpMyAdminDemo the productWalk through the install stepsDemo a live installation
  • 43. phpMyAdmin – Installation processPre-requisties:Zend Core for i5/OSMySQL version 5 or greaterV5R4 or V6R1AgendaGet fileMove to IBM iUn-tarConfigurePlay
  • 44. Get phpMyAdmin file to IBM iGo to the host website, download current versionhttp://www.phpmyadmin.netClick Download at top of screenSelect version appropriate for you, I chose English tar.gz
  • 45. CompressionCompression and archive…TAR was done firstThen GZIP was done. So….You need to work in reverseUnzip the file on your workstation (PKZip, etc.)Move the file phpMyAdmin-3.2.2-english.tar to the IFS doc rootThen untar on the i5
  • 46. Place file into document root
  • 47. Command to untarTar = Tap ArchiveUse QP2TERM interfac to untarCall QP2TERMChange to the document rootCD /www/zendcore/htdocs
  • 50. After the tarThe screen will roll quite a bit then you get the $Now create a symbolic link to the directory for ease of useln -s ./phpMyAdmin-3.2.2-english phpMyAdmin
  • 51. Create the config fileThe config file tells phpMyAdmin where everything is. Create manuallyUse automated featureMove to the phpMyAdmin directorycdphpmyadminCreate the directory & set securitymkdirconfigchmodo+rwconfig
  • 52. Results of directory and security changes
  • 53. Go to browser to run confighttp://your_host/path/to/phpMyAdmin/setup/
  • 54. Scroll down to config optionsClick the New server button…
  • 55. Enter server specific infoType a description of the server nameLeave localhost for hostname…click SAVE
  • 56. Finish optionsSelect language, etc. And click save again
  • 57. Copy the config file to phpMyAdmin directoryYou just created a config file in directory configMove the file to the phpMyAdmin directory for usemvconfig/config.inc.php .chmod o-rwconfig.inc.php
  • 58. Head to the phpMyAdmin login screenhttp://yourservername/phpMyAdmin/
  • 59. Add user to MySQLcd /usr/local/mysql/binMysql –u rootuse mysqlselect user, password from user;
  • 61. After the additionAdd the user:CREATE USER ‘mpavlak'@‘%' IDENTIFIED BY ‘test1';GRANT SELECT,INSERT,UPDATE,DELETE ON *.* TO ‘mpavlak'@’%’;OrGRANT ALL ON *.* TO ‘mpavlak'@’%’;
  • 63. Break Be back in 10 minutes
  • 64. Mix & matchProcedural PHP & Zend Framework
  • 65. Procedural PHP and Zend FrameworkAgendaLook at a procedural PHP application that gets order infoLook at the info in a web pageMove info to PDF and distributeThink ZF is hard? Guess again!
  • 66. Zend_PDFCheck out the Zend Framework websitehttp://www.zendframework.com/manual/en/zend.pdf.htmlLook at an example that reads DB2 data and produces a PDF
  • 67. AgendaRead order detail fileInstantiate a PDF objectUpdate the object with the contents of the orderWrite the PDFDispose of the objectAdmire our work!
  • 68. Zend_PDFComponent of Zend FrameworkComes with Zend Core for i5FREE!!!ZF is built by the community, for the communityDocumentation at: http://framework.zend.com/manual/en/zend.pdf.html
  • 69. Build the contentRead through the detail file…
  • 70. Object & headingCreate object Set heading
  • 71. Body of printDevelop line detail Output the PDF o the IFS
  • 72. Windows Explorer view of IFSOnce in the IFS you do what you wantFTP, email, cms, etc…
  • 74. Zend_PDF DocumentationCheck out Zend_PDF doc at ZendFramework.comMake it look prettyIntegrate into procedural developmentLearn a little OO as you goCome to Zend for more trainingHigher StructuresZend FrameworkCertification prepMore…
  • 75. Where to get more informationZend and other places
  • 78. New book, new printing, same great stuff!Kevin Schroeder from Zend’s Global Services Groupwith Jeff Olen, co-author of…Get yours at MCPressonlineor at fine bookstores everywhere
  • 80. IBM i Events…reminder!!!Sessions on TuesdayPHP Faster and CheaperSam Hennessy – Zend TechnologiesZend Core on IBM i – Security ConsiderationsTony Cairns – IBM PHP and IBM i - Database AlternativesErwin Early – IBMZend Framework on IBM iAlan Seiden – Strategic Business SystemsMazda: Advanced Web Services and PHPOlivier Lépine - Quatrain Technologies
  • 81. IBM i Events (cont.)LunchTables will be labeled for i5 community networkingYes you can sit somewhere else IBM i Networking Reception Immediately following the “Meet the Team”Wednesday evening meet in the hall and head outDinner is on you, but beers are on Zend! Gordon Biersch (note in your bag or see me!)
  • 82. Please enjoy the Conference!Thank you!!!