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
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.
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
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
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'@’%’;
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
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!)