SlideShare a Scribd company logo
PHP on IBM i: What’s New with
         Zend Server 5 for IBM i

                       Function Junction
Mike Pavlak
Solutions Consultant
mike.p@zend.com
mike p@zend com




                                           © All rights reserved. Zend Technologies, Inc.
PHP Sessions
        Sun 11:30 AM                                         • What’s New with Zend Server


          Sun 1:30 PM                                        • Business Value of PHP


          Sun 4:00 PM                                        • Practical PHP by Example (Leth-Kjaer)


       Mon 10:00 AM                                          • PHP on IBM i: Getting Started


       Mon 10:00 AM                                          • DB Standards in Zend PHP usage (Sielhorst)


        Tue 10:00 AM                                         • MySQL on IBM i, Open Source & DB2 Store


        Tue 11 30 A
            11:30 AM                                         • PHP Arrays for the RPG Programmer

| 2   Copyright © 2009 Zend Technologies, Inc, All rights
      reserved
                                                            © All rights reserved. Zend Technologies, Inc.   02/03
                                                                                                             /10
Audience

    • Used PHP somewhere else
    • New to Zend PHP
    • Looking to understand the strategic direction
            g                         g
    • Anyone who does not believe third party vendors ARE
      investing in this space…




3   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Agenda
    • Review the IBM relationship
    • Technical Overview
    • Product Installation
    • Community Edition Features
         Toolkit, optimizer, java bridge, debug

    •F t
     Features of commercial edition
               f        i l diti
          Monitoring, Code Tracing, Job Queue




4   Insert->Header & Footer        © All rights reserved. Zend Technologies, Inc.
What’s New with Zend Server
www.zend.com




 IBM Relationship




                    © All rights reserved. Zend Technologies, Inc.
IBM Relationship History
    • Zend is an IBM strategic business partner
    • IBM selected Zend to bring PHP to IBM i in 2005
    • Beta, then Core, then Platform now Server
    • Tens of thousands of downloads from Zend
    • Zend Server part of IBM i6.1 & i7.1
    • Products are always available at Zend.com




6   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
IBM Relationship FAQ’s
                     FAQ s
    • What do we get?
         Zend Server CE

         Zend Studio

         1 year Sil
                 Silver L
                        Level S
                            l Support (
                                    t (email/web 72 h
                                          il/ b     hour response)
                                                                 )
         Since Feb 1, 2009



    • What happens after 1 year?
         Product will still run

         No updates to product or PHP*

         Forum support only
                  pp       y


7   Insert->Header & Footer        © All rights reserved. Zend Technologies, Inc.
Zend Support Options
    • Silver for the first year from your first download
         Web ticket/email support

         72 hour response window

    • G ld - B i
      Gold Business h
                    hour support
                               t
         6 hour response on P1 (site down)

    • Pl ti
      Platinum – 24/7
         2 hour response on P1 (site down)

         Customer requested PHP Bug Hot Fixes

    • SLA detailed on Zend Website
         http://www zend com/en/services/support/production-sla
          http://www.zend.com/en/services/support/production-sla


9   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Zend Server 5 for IBM i
www.zend.com




 Technical overview




                © All rights reserved. Zend Technologies, Inc.
What Is Zend Server?
 • Production quality PHP stack
       PHP ZF DB connectivity debugging extension
        PHP, ZF,  connectivity,          extension,
          and more
 • Two Editions - Free “Community Edition”
   provided by IBM & Full commercial edition
       Both are production ready

 • Application monitoring and diagnostics
   (integrated with Zend Studio)
 • Multi-level performance enhancement
   capabilities
 • S ft
   Software updates and security h t fi
              d t     d      it hot fixes
 • Easy and quick installation
 • Zend Framework Integration
                      g


12   What is Zend Server            © All rights reserved. Zend Technologies, Inc.
Why a new generation?

     • Based on feedback of key areas for Improvement
                              y             p
     • Improved basic PHP Performance
          30% to 600% depending on the application
                         p     g         pp
     • New capabilities
          Code Tracing – Faster problem resolution

          Job Queue – Asynchronous PHP script processing (in batch!)

          Page Caching – Performance and scalability

          Support for PHP 5.3

     • Easier installation, administration & maintenance


14   Insert->Header & Footer     © All rights reserved. Zend Technologies, Inc.
Zend Server Under the Covers
                                                                                 IBM i
     ILE Apache:10088                                                            i/OS
     • Default                                                                                PHP file
        configuration                                                             PASE
        FastCGI

                                 HTTP:10088
                 URL Request                                                     PHP CGI        *PGM
                                   Server
                                       (FastCGI)
                                                                                                CMD
                     HTML


                                                                                Zend Server
                                                                                              DB2 UDB




                               © All rights reserved. Zend Technologies, Inc.
15
Zend Server for IBM i
www.zend.com




 Installation




                © All rights reserved. Zend Technologies, Inc.
Zend Server Installation
     • Can install PHP 5.2 or 5.3 (Select PHP 5.3, see www.php.net )
     • Save File or Windows installer available at Zend.com
     • Updated Fast CGI built by IBM requires PTFs
          Current group for 57nnDG1 – IBM HTTP Server for i5/OS
           http://www-912.ibm.com/s_dir/sline003.nsf/GroupPTFs?OpenView&view=GroupPTFs

          V5R4 – Updated!
                  • PASE – SI36004 – Updated!
                  • HTTP – SI36026
          i6.1 – Updated!
                  • PASE – SI36005
                  • HTTP – SI36027

17   Insert->Header & Footer          © All rights reserved. Zend Technologies, Inc.
Zend Core Users
     • Can install Zend Server side by side
     • Uses new directories
     • Uses different port 10088
     • Consider running one side at a time
          Potential conflict with user based applications.

          Other applications

     • Once successfully on Zend Server, remove Core
          DLTLICPGM




18   Insert->Header & Footer    © All rights reserved. Zend Technologies, Inc.
File locations
     • Document Root
          /www/zendsvr/htdocs

     • Zend Installation Directories
          /usr/local/zendsvr

     • Zend Framework
          /usr/local/zendsvr/share/ZendFramework

     • PHP binaries (CLI and more)
          /usr/local/zendsvr/bin




21   Insert->Header & Footer    © All rights reserved. Zend Technologies, Inc.
Other new defaults

     • Web User
          QTMHHTTP

     • Initial port
          10088

     • Admin Interface
          http://yourIBMiNameHere:10088/ZendServer

     • Nice comparison table of Core vs. Server (Alan Seiden)
          http://www.alanseiden.com/2010/04/21/differences-between-
              zend-core-and-zend-server-on-ibm-i/



22   Insert->Header & Footer     © All rights reserved. Zend Technologies, Inc.
Update process
     • User controlled PTF
     • PTF available f
              il bl from Z d
                         Zend
     • Check for updates in Administration panel




23   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Sample scripts
     • Free for the install http://yourIBMiName:10088/Samples/
     • B i concepts, if you want an application consider O
       Basic      t            t       li ti        id Open
       Source community
     • Scripts examples:
          HelloWorld

          SQL Data Access to DB2
            Q
          SQL Data Access using ZF

          SQL Access to MySQL

          Program call

          LDAP



24   Insert->Header & Footer     © All rights reserved. Zend Technologies, Inc.
Zend Server for IBM i
www.zend.com




 Community Edition Features




                © All rights reserved. Zend Technologies, Inc.
Zend Server CE vs Commercial
                    vs.
           Feature                                                                      CE       Commercial
           Certified PHP                                                                     ●       ●

           Zend Framework                                                                    ●       ●

           Apache integration                                                                ●       ●

           MySQL                                                                             ●       ●

           Built-in database connectivity                                                    ●       ●

           Java connector                                                                    ●       ●

           Web-based admin                                                                   ●       ●

           Debugger                                                                          ●       ●

           Bytecode acceleration                                                             ●       ●

           Caching API                                                                       ●       ●

           PHP 5.3                                                                           ●       ●

           PHP IBM i toolkit                                                                 ●       ●

           Page Cache                                                                                ●

           Application Monitoring                                                                    ●

           Code tracing                                                                              ●

           Job queue                                                                                 ●

           Software updates and hot fixes                                                            ●
           Technical support                                                                         ●


26   Insert->Header & Footer                © All rights reserved. Zend Technologies, Inc.
Database resources supported
     • DB2
          db2_connect

     • MySQL
          mysql_connect

     • Microsoft SQL Server
          mssql_connect

     • Oracle
          oci
           oci_




27   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Leverage investments in existing technology

     • Call High level language programs
              g           g g p g
          RPG

          COBOL

          CL programs via toolkit

          C based API’s

     • Call Java Program via Java Connector
          Now part of the both Zend Server and Zend Server Community
              Edition




28   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Optimizer+
     Eliminates what’s not needed
          Opcode cache
                  • Caches the PHP bytecode in RAM
                  • Significantly reduces disk access
          Opcode optimizer
                  • O ti i
                    Optimizes certain code f
                                 t i    d fragments t i
                                                 t to improve execution speed
                                                                   ti       d

     Now part of the free Community Edition package




29   Insert->Header & Footer           © All rights reserved. Zend Technologies, Inc.
Data Caching

     Provides a set of API functions for caching data items
                                               g
          DB query results, web service calls, complex or hard-to-get data

          Output elements

          Allows skipping slow PHP code chunks

          Shared memory and Disk storage backends

          Data can be grouped using namespaces

          APC user cache compatibility layer

          Zend Framework Zend_Cache_Backend adapters




30   Insert->Header & Footer    © All rights reserved. Zend Technologies, Inc.
Zend Server Update

www.zend.com




 Open Source Toolkit




                © All rights reserved. Zend Technologies, Inc.
Toolkit Plumbing from 10 000 feet
                           10,000

       DB2
                               DB2 Extension
     Functions
                                 or ODBC                         DRDA                     DB2
                                XML
                                                                                         Stored
                                   PHP                                                 Procedures
        OO                                                                                 &
                                  Classes
     Program
        g                                                                                 Data
                                  Toolkit
                                  T lkit
       Calls
                                    API
                                                                                             XML
                                                                                                                 HLL’s
                                         OO R
                                            Request                                                            RPG, COBOL
        i5                                                                                RPG
                               Compatibility                                           XMLSERVICE
     functions
                                 Wrapper                                                                        System
                                                                                                   Parm Data
                                                                                                               Artifacts

32   Insert->Header & Footer          © All rights reserved. Zend Technologies, Inc.
XML Service

     • IBM has open sourced XMLService.
                p
     • First Open Source project on IBM i. (that I know of…)
     • Made up of RPG, CL and DB2 stored procedures (SQL)
             p       ,                   p          ( Q )


     • Tony Cairns, IBM Rochester




33   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
XML Service

     • Cross platform
             p
     • Language agnostic
     • Basic plumbing for all open source languages
             p      g          p             g g




34   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Compatibility Wrapper

     • Intercepts existing i5 function requests
              p          g               q
     • Written in pure PHP
     • Passes them on to OO PHP which then…
     • Passes on to XML Service




     • Alan Seiden, SBS & alanseiden.com
            Seiden




35   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Source Code on YiPs for now
                    YiPs…for now…
     • http://youngiprofessionals.com/




36   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Now the program call

     • Set parameters based on function
           p
          Call program                                                                 V   I
                                                                                    C   a
                                                                                L           n
                                                                            I       o
          Output results                                                       e       r   i
                                                                                    m
                                                                                n           t
                                                                            /   g
                                                                                    m
                                                                                        n
                                                                                    e
                                                                            O   t
                                                                                h
                                                                                    n   a   v
                                                                                            a
                                                                                    t   m
                                                                                            l
                                                                                        e




37   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Zend Server for IBM i
www.zend.com




 Commercial Edition Features




                © All rights reserved. Zend Technologies, Inc.
Application Monitoring

     Zend Server Monitor will watch your application for:
                                    y     pp
          PHP Errors (including warnings, notices, uncaught exceptions...)

          Failing functions (user-defined or internal)

          Failing DB queries

          Slow functions (user-defined or internal) or DB queries

          Slow request executions

          High memory consumption

          Errors reported by Zend Server components


     When an issue is detected, Zend Server reports an event and
                      detected
      takes the “Dump” every time!
39   Code Tracing                © All rights reserved. Zend Technologies, Inc.
Page Caching

     Don't execute a single line of PHP if you don't have to
                        g                  y
          Caches entire HTTP response

          Configured from UI, no code changes required

          Live / cached decision is based on request or session parameters

          Variants can be created based on request or session parameters




40   Insert->Header & Footer    © All rights reserved. Zend Technologies, Inc.
Page Caching




41   Insert->Header & Footer   © All rights reserved. Zend Technologies, Inc.
Zend Server 5 for IBM i
www.zend.com




 Code Tracing
   d




                © All rights reserved. Zend Technologies, Inc.
Code Tracing Supported Workflows

• Monitoring workflow:
           g
  When a monitoring event is created, the associated trace data of
    the specific request is captured
  Trace data is attached and associated to the monitoring event

• Manual tests/functional workflow:
  Manually through the GUI or from a browser by adding a
    parameter to the request
• Production workflow
  Can be activated automatically in case of a Zend Monitoring
    event, for example a PHP error, a slow execution or high memory
    usage

                         © All rights reserved. Zend Technologies, Inc.
Code Tracing Enhancements since last demo

• We are working this stuff pretty hard 
               g            p    y
• Toggle Critical path display
• Toggle Memory display
    gg        y    p y
• Arguments display




                       © All rights reserved. Zend Technologies, Inc.
Zend Server 5: Technical Overview
www.zend.com




 Job Queue
   b




               © All rights reserved. Zend Technologies, Inc.
Job Queue allows you to
                          to...

     • Put certain tasks into a separate execution queue
                                  p                q
       Off-load to new process (or defer to a later time)

       Off-load to a different server

     • Execute certain tasks at a specified time
       Distribute processing load to off-hours

     • Execute certain tasks periodically
     • While..
       Maximizing reuse of existing infrastructure & code

       Making sure nothing falls between the cracks

       Doing it all from a PHP API

46                           © All rights reserved. Zend Technologies, Inc.
Creating Jobs

     • Jobs are created using the createHttpJob() method
                            g              p   ()
                $queue = new ZendJobQueue();
                $queue->createHttpJob(
                    'http://backend.local/jobs/somejob.php');
     • Pass parameters
          Simple ones, via query string $_GET

          C
           Complex ones, as an associative array of k => value pairs
               l                    i ti          f key    l     i
     • Set job options
          N
           Name, priority, schedule, etc.
                   i it      h d l    t
          Create deferred or recurring jobs


     • Or… create from the UI
47   Insert->Header & Footer    © All rights reserved. Zend Technologies, Inc.
Resources
     • Recorded Webinars
          http://www.zend.com/en/resources/webinars/i5-os



     •Z d S
      Zend Server f IBM i main page, li k t d
                  for       i        link to downloads
                                                 l d
          http://www.zend.com/en/products/server/zend-server-ibm-i



     • Zend Server manual:
          PDF: htt //
                http://www.zend.com/topics/Zend-Server-5-for-IBMi-Reference-Manual.pdf
                              d    /t i /Z d S         5 f IBMi R f         M    l df

          Online: http://files.zend.com/help/Zend-Server-5/zend-
              server.htm#installation_guide.htm




48   Insert->Header & Footer              © All rights reserved. Zend Technologies, Inc.
Thank you & Q&A
• If you have a question you can
  Type in the Q&A panel

  Tweet #zendwebinar



• Follow us!
  http://bit ly/cjueZg (Zend Technologies or search for Zend)
   http://bit.ly/cjueZg


  http://twitter com/zend
   http://twitter.com/zend




                        © All rights reserved. Zend Technologies, Inc.
Q&A
                               www.zend.com
                        mike.p@zend.com
                             p

                Please fill out your
                Session Evaluation!
50   Insert->Header & Footer      © All rights reserved. Zend Technologies, Inc.

More Related Content

PDF
Getting started with PHP on IBM i
PDF
Web services on IBM i with PHP and Zend Framework
PDF
Strategic Modernization with PHP on IBM i
PDF
PHP Batch Jobs on IBM i
PDF
Create a welcoming development environment on IBM i
PDF
A Tale of Two Toolkits
PDF
Dutch php conference_2010_opm
PDF
Application Deployment on IBM i
Getting started with PHP on IBM i
Web services on IBM i with PHP and Zend Framework
Strategic Modernization with PHP on IBM i
PHP Batch Jobs on IBM i
Create a welcoming development environment on IBM i
A Tale of Two Toolkits
Dutch php conference_2010_opm
Application Deployment on IBM i

What's hot (19)

PDF
Zend Server: A Guided Tour
PDF
Zend In The Cloud
PPT
PDF
2010 thin client family datasheet
PPTX
Are you ready to work in the Parallel Universe? Rise to the challenge at SC13
PDF
Tiery Eyed
PDF
Don't fear the Walking Dead @ IPC 2016
PPT
Zend Framework
PDF
DA with Wa - Desktop Apps With Web Apps
PPT
HP Universal Server Migration Pack - Magnus Wetterberg.ppt
PDF
Turbocharging php applications with zend server (workshop)
PDF
Code Reuse Made Easy: Uncovering the Hidden Gems of Corporate and Open Source...
PDF
Webfest 2011 PHP on Windows by Rama Yurindra
PDF
Open Mic on Sametime9 Install -Best Practices
PDF
Inside IBM Java 7
PDF
BP209 doctors have scalpels, carpenters have hammers, ibm sametime develope...
PPTX
Codestrong 2012 breakout session exploring the new titanium command line in...
PDF
PHP in the Real World
PDF
We Can Do Better - IBM's Vision for the Next Generation of Java Runtimes - Jo...
Zend Server: A Guided Tour
Zend In The Cloud
2010 thin client family datasheet
Are you ready to work in the Parallel Universe? Rise to the challenge at SC13
Tiery Eyed
Don't fear the Walking Dead @ IPC 2016
Zend Framework
DA with Wa - Desktop Apps With Web Apps
HP Universal Server Migration Pack - Magnus Wetterberg.ppt
Turbocharging php applications with zend server (workshop)
Code Reuse Made Easy: Uncovering the Hidden Gems of Corporate and Open Source...
Webfest 2011 PHP on Windows by Rama Yurindra
Open Mic on Sametime9 Install -Best Practices
Inside IBM Java 7
BP209 doctors have scalpels, carpenters have hammers, ibm sametime develope...
Codestrong 2012 breakout session exploring the new titanium command line in...
PHP in the Real World
We Can Do Better - IBM's Vision for the Next Generation of Java Runtimes - Jo...
Ad

Viewers also liked (8)

PDF
Moving 5.4 to 7.1 AB
PDF
IBM Systems Director Navigator for i
PDF
Business continuity with SAP on IBM i
DOC
Practical web services for RPG lab exercises
PDF
Security considerations for the cloud
PDF
Using Ruby on IBM i (i5/OS)
PDF
Practical PHP by example Jan Leth-Kjaer
PDF
Compiling the Compiler
Moving 5.4 to 7.1 AB
IBM Systems Director Navigator for i
Business continuity with SAP on IBM i
Practical web services for RPG lab exercises
Security considerations for the cloud
Using Ruby on IBM i (i5/OS)
Practical PHP by example Jan Leth-Kjaer
Compiling the Compiler
Ad

Similar to What's new with Zend server (20)

PDF
Performance tuning PHP on IBMi
PPTX
Getting started with PHP on IBM i
PPTX
Zend Products and PHP for IBMi
PPTX
High performance PHP: Scaling and getting the most out of your infrastructure
PDF
Running open source PHP applications on you IBM i
PPTX
Turbocharging php applications with zend server
PDF
Introduction to My SQL
PDF
Integrating PHP With System-i using Web Services
PDF
Scalable High-Availability Session Storage with ZSCM
PPTX
PHP Apps on the Move - Migrating from In-House to Cloud
PDF
Red Hat for Power Systems IBM Enterprise2014 Las Vegas
PPTX
PHP on IBM i Tutorial
PDF
Red Hat for IBM System z IBM Enterprise2014 Las Vegas
PPT
Microsoft TechDays 2011 - PHP on Windows
PPTX
Zend Framwork configurations
PPTX
Zend Framwork presentation
PPTX
PHP Installed on IBM i - the Nickel Tour
PDF
PHP Toolkit from Zend and IBM: Open Source on IBM i
PPT
Ria Applications And PHP
PDF
Better Bug Stomping with Zend Studio and Zend Server
Performance tuning PHP on IBMi
Getting started with PHP on IBM i
Zend Products and PHP for IBMi
High performance PHP: Scaling and getting the most out of your infrastructure
Running open source PHP applications on you IBM i
Turbocharging php applications with zend server
Introduction to My SQL
Integrating PHP With System-i using Web Services
Scalable High-Availability Session Storage with ZSCM
PHP Apps on the Move - Migrating from In-House to Cloud
Red Hat for Power Systems IBM Enterprise2014 Las Vegas
PHP on IBM i Tutorial
Red Hat for IBM System z IBM Enterprise2014 Las Vegas
Microsoft TechDays 2011 - PHP on Windows
Zend Framwork configurations
Zend Framwork presentation
PHP Installed on IBM i - the Nickel Tour
PHP Toolkit from Zend and IBM: Open Source on IBM i
Ria Applications And PHP
Better Bug Stomping with Zend Studio and Zend Server

More from COMMON Europe (20)

PDF
What's New in WebSphere Application Server
PDF
Workload Groups overview updates
PDF
Why i - Common Europe 2012
PDF
The Ruby OpenSSL extension
PDF
IBM i Trends & Directions Common Europe 2012
PDF
IBM i Technology Refreshes Overview 2012 06-04
PDF
IBM i 7.1 & TRs CEC 2012
PDF
DB2 Web Query whats new
PDF
Access client solutions overview
PDF
RPG investment
PDF
Php arrays for RPG programmers
PDF
Open source report writing tools for IBM i Vienna 2012
PDF
IBM CEC 2012 Storage june 11, 2012
PDF
Developing mobile applications for i using open source tools Venna 2012
PDF
DB2 for i 7.1 - Whats New?
PPT
Common Europe SAP on i for beginners
PDF
Business value of PHP
PDF
AD for i in modern world
PDF
What you-need-to-know-to-do successful-upgrades
PDF
Tips n-tricks to improve performance and reduce disk space
What's New in WebSphere Application Server
Workload Groups overview updates
Why i - Common Europe 2012
The Ruby OpenSSL extension
IBM i Trends & Directions Common Europe 2012
IBM i Technology Refreshes Overview 2012 06-04
IBM i 7.1 & TRs CEC 2012
DB2 Web Query whats new
Access client solutions overview
RPG investment
Php arrays for RPG programmers
Open source report writing tools for IBM i Vienna 2012
IBM CEC 2012 Storage june 11, 2012
Developing mobile applications for i using open source tools Venna 2012
DB2 for i 7.1 - Whats New?
Common Europe SAP on i for beginners
Business value of PHP
AD for i in modern world
What you-need-to-know-to-do successful-upgrades
Tips n-tricks to improve performance and reduce disk space

Recently uploaded (20)

PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
Teaching material agriculture food technology
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
cuic standard and advanced reporting.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Modernizing your data center with Dell and AMD
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Electronic commerce courselecture one. Pdf
Encapsulation_ Review paper, used for researhc scholars
The AUB Centre for AI in Media Proposal.docx
Understanding_Digital_Forensics_Presentation.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Teaching material agriculture food technology
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Dropbox Q2 2025 Financial Results & Investor Presentation
Advanced methodologies resolving dimensionality complications for autism neur...
cuic standard and advanced reporting.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Empathic Computing: Creating Shared Understanding
Spectral efficient network and resource selection model in 5G networks
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Agricultural_Statistics_at_a_Glance_2022_0.pdf
MYSQL Presentation for SQL database connectivity
Modernizing your data center with Dell and AMD

What's new with Zend server

  • 1. PHP on IBM i: What’s New with Zend Server 5 for IBM i Function Junction Mike Pavlak Solutions Consultant mike.p@zend.com mike p@zend com © All rights reserved. Zend Technologies, Inc.
  • 2. PHP Sessions Sun 11:30 AM • What’s New with Zend Server Sun 1:30 PM • Business Value of PHP Sun 4:00 PM • Practical PHP by Example (Leth-Kjaer) Mon 10:00 AM • PHP on IBM i: Getting Started Mon 10:00 AM • DB Standards in Zend PHP usage (Sielhorst) Tue 10:00 AM • MySQL on IBM i, Open Source & DB2 Store Tue 11 30 A 11:30 AM • PHP Arrays for the RPG Programmer | 2 Copyright © 2009 Zend Technologies, Inc, All rights reserved © All rights reserved. Zend Technologies, Inc. 02/03 /10
  • 3. Audience • Used PHP somewhere else • New to Zend PHP • Looking to understand the strategic direction g g • Anyone who does not believe third party vendors ARE investing in this space… 3 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 4. Agenda • Review the IBM relationship • Technical Overview • Product Installation • Community Edition Features Toolkit, optimizer, java bridge, debug •F t Features of commercial edition f i l diti  Monitoring, Code Tracing, Job Queue 4 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 5. What’s New with Zend Server www.zend.com IBM Relationship © All rights reserved. Zend Technologies, Inc.
  • 6. IBM Relationship History • Zend is an IBM strategic business partner • IBM selected Zend to bring PHP to IBM i in 2005 • Beta, then Core, then Platform now Server • Tens of thousands of downloads from Zend • Zend Server part of IBM i6.1 & i7.1 • Products are always available at Zend.com 6 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 7. IBM Relationship FAQ’s FAQ s • What do we get? Zend Server CE Zend Studio 1 year Sil Silver L Level S l Support ( t (email/web 72 h il/ b hour response) ) Since Feb 1, 2009 • What happens after 1 year? Product will still run No updates to product or PHP* Forum support only pp y 7 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 8. Zend Support Options • Silver for the first year from your first download Web ticket/email support 72 hour response window • G ld - B i Gold Business h hour support t 6 hour response on P1 (site down) • Pl ti Platinum – 24/7 2 hour response on P1 (site down) Customer requested PHP Bug Hot Fixes • SLA detailed on Zend Website http://www zend com/en/services/support/production-sla http://www.zend.com/en/services/support/production-sla 9 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 9. Zend Server 5 for IBM i www.zend.com Technical overview © All rights reserved. Zend Technologies, Inc.
  • 10. What Is Zend Server? • Production quality PHP stack PHP ZF DB connectivity debugging extension PHP, ZF, connectivity, extension, and more • Two Editions - Free “Community Edition” provided by IBM & Full commercial edition Both are production ready • Application monitoring and diagnostics (integrated with Zend Studio) • Multi-level performance enhancement capabilities • S ft Software updates and security h t fi d t d it hot fixes • Easy and quick installation • Zend Framework Integration g 12 What is Zend Server © All rights reserved. Zend Technologies, Inc.
  • 11. Why a new generation? • Based on feedback of key areas for Improvement y p • Improved basic PHP Performance 30% to 600% depending on the application p g pp • New capabilities Code Tracing – Faster problem resolution Job Queue – Asynchronous PHP script processing (in batch!) Page Caching – Performance and scalability Support for PHP 5.3 • Easier installation, administration & maintenance 14 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 12. Zend Server Under the Covers IBM i ILE Apache:10088 i/OS • Default PHP file configuration PASE FastCGI HTTP:10088 URL Request PHP CGI *PGM Server (FastCGI) CMD HTML Zend Server DB2 UDB © All rights reserved. Zend Technologies, Inc. 15
  • 13. Zend Server for IBM i www.zend.com Installation © All rights reserved. Zend Technologies, Inc.
  • 14. Zend Server Installation • Can install PHP 5.2 or 5.3 (Select PHP 5.3, see www.php.net ) • Save File or Windows installer available at Zend.com • Updated Fast CGI built by IBM requires PTFs Current group for 57nnDG1 – IBM HTTP Server for i5/OS  http://www-912.ibm.com/s_dir/sline003.nsf/GroupPTFs?OpenView&view=GroupPTFs V5R4 – Updated! • PASE – SI36004 – Updated! • HTTP – SI36026 i6.1 – Updated! • PASE – SI36005 • HTTP – SI36027 17 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 15. Zend Core Users • Can install Zend Server side by side • Uses new directories • Uses different port 10088 • Consider running one side at a time Potential conflict with user based applications. Other applications • Once successfully on Zend Server, remove Core DLTLICPGM 18 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 16. File locations • Document Root /www/zendsvr/htdocs • Zend Installation Directories /usr/local/zendsvr • Zend Framework /usr/local/zendsvr/share/ZendFramework • PHP binaries (CLI and more) /usr/local/zendsvr/bin 21 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 17. Other new defaults • Web User QTMHHTTP • Initial port 10088 • Admin Interface http://yourIBMiNameHere:10088/ZendServer • Nice comparison table of Core vs. Server (Alan Seiden) http://www.alanseiden.com/2010/04/21/differences-between- zend-core-and-zend-server-on-ibm-i/ 22 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 18. Update process • User controlled PTF • PTF available f il bl from Z d Zend • Check for updates in Administration panel 23 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 19. Sample scripts • Free for the install http://yourIBMiName:10088/Samples/ • B i concepts, if you want an application consider O Basic t t li ti id Open Source community • Scripts examples: HelloWorld SQL Data Access to DB2 Q SQL Data Access using ZF SQL Access to MySQL Program call LDAP 24 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 20. Zend Server for IBM i www.zend.com Community Edition Features © All rights reserved. Zend Technologies, Inc.
  • 21. Zend Server CE vs Commercial vs. Feature CE Commercial Certified PHP ● ● Zend Framework ● ● Apache integration ● ● MySQL ● ● Built-in database connectivity ● ● Java connector ● ● Web-based admin ● ● Debugger ● ● Bytecode acceleration ● ● Caching API ● ● PHP 5.3 ● ● PHP IBM i toolkit ● ● Page Cache ● Application Monitoring ● Code tracing ● Job queue ● Software updates and hot fixes ● Technical support ● 26 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 22. Database resources supported • DB2 db2_connect • MySQL mysql_connect • Microsoft SQL Server mssql_connect • Oracle oci oci_ 27 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 23. Leverage investments in existing technology • Call High level language programs g g g p g RPG COBOL CL programs via toolkit C based API’s • Call Java Program via Java Connector Now part of the both Zend Server and Zend Server Community Edition 28 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 24. Optimizer+ Eliminates what’s not needed Opcode cache • Caches the PHP bytecode in RAM • Significantly reduces disk access Opcode optimizer • O ti i Optimizes certain code f t i d fragments t i t to improve execution speed ti d Now part of the free Community Edition package 29 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 25. Data Caching Provides a set of API functions for caching data items g DB query results, web service calls, complex or hard-to-get data Output elements Allows skipping slow PHP code chunks Shared memory and Disk storage backends Data can be grouped using namespaces APC user cache compatibility layer Zend Framework Zend_Cache_Backend adapters 30 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 26. Zend Server Update www.zend.com Open Source Toolkit © All rights reserved. Zend Technologies, Inc.
  • 27. Toolkit Plumbing from 10 000 feet 10,000 DB2 DB2 Extension Functions or ODBC DRDA DB2 XML Stored PHP Procedures OO & Classes Program g Data Toolkit T lkit Calls API XML HLL’s OO R Request RPG, COBOL i5 RPG Compatibility XMLSERVICE functions Wrapper System Parm Data Artifacts 32 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 28. XML Service • IBM has open sourced XMLService. p • First Open Source project on IBM i. (that I know of…) • Made up of RPG, CL and DB2 stored procedures (SQL) p , p ( Q ) • Tony Cairns, IBM Rochester 33 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 29. XML Service • Cross platform p • Language agnostic • Basic plumbing for all open source languages p g p g g 34 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 30. Compatibility Wrapper • Intercepts existing i5 function requests p g q • Written in pure PHP • Passes them on to OO PHP which then… • Passes on to XML Service • Alan Seiden, SBS & alanseiden.com Seiden 35 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 31. Source Code on YiPs for now YiPs…for now… • http://youngiprofessionals.com/ 36 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 32. Now the program call • Set parameters based on function p Call program V I C a L n I o Output results e r i m n t / g m n e O t h n a v a t m l e 37 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 33. Zend Server for IBM i www.zend.com Commercial Edition Features © All rights reserved. Zend Technologies, Inc.
  • 34. Application Monitoring Zend Server Monitor will watch your application for: y pp PHP Errors (including warnings, notices, uncaught exceptions...) Failing functions (user-defined or internal) Failing DB queries Slow functions (user-defined or internal) or DB queries Slow request executions High memory consumption Errors reported by Zend Server components When an issue is detected, Zend Server reports an event and detected takes the “Dump” every time! 39 Code Tracing © All rights reserved. Zend Technologies, Inc.
  • 35. Page Caching Don't execute a single line of PHP if you don't have to g y Caches entire HTTP response Configured from UI, no code changes required Live / cached decision is based on request or session parameters Variants can be created based on request or session parameters 40 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 36. Page Caching 41 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 37. Zend Server 5 for IBM i www.zend.com Code Tracing d © All rights reserved. Zend Technologies, Inc.
  • 38. Code Tracing Supported Workflows • Monitoring workflow: g When a monitoring event is created, the associated trace data of the specific request is captured Trace data is attached and associated to the monitoring event • Manual tests/functional workflow: Manually through the GUI or from a browser by adding a parameter to the request • Production workflow Can be activated automatically in case of a Zend Monitoring event, for example a PHP error, a slow execution or high memory usage © All rights reserved. Zend Technologies, Inc.
  • 39. Code Tracing Enhancements since last demo • We are working this stuff pretty hard  g p y • Toggle Critical path display • Toggle Memory display gg y p y • Arguments display © All rights reserved. Zend Technologies, Inc.
  • 40. Zend Server 5: Technical Overview www.zend.com Job Queue b © All rights reserved. Zend Technologies, Inc.
  • 41. Job Queue allows you to to... • Put certain tasks into a separate execution queue p q Off-load to new process (or defer to a later time) Off-load to a different server • Execute certain tasks at a specified time Distribute processing load to off-hours • Execute certain tasks periodically • While.. Maximizing reuse of existing infrastructure & code Making sure nothing falls between the cracks Doing it all from a PHP API 46 © All rights reserved. Zend Technologies, Inc.
  • 42. Creating Jobs • Jobs are created using the createHttpJob() method g p () $queue = new ZendJobQueue(); $queue->createHttpJob( 'http://backend.local/jobs/somejob.php'); • Pass parameters Simple ones, via query string $_GET C Complex ones, as an associative array of k => value pairs l i ti f key l i • Set job options N Name, priority, schedule, etc. i it h d l t Create deferred or recurring jobs • Or… create from the UI 47 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 43. Resources • Recorded Webinars http://www.zend.com/en/resources/webinars/i5-os •Z d S Zend Server f IBM i main page, li k t d for i link to downloads l d http://www.zend.com/en/products/server/zend-server-ibm-i • Zend Server manual: PDF: htt // http://www.zend.com/topics/Zend-Server-5-for-IBMi-Reference-Manual.pdf d /t i /Z d S 5 f IBMi R f M l df Online: http://files.zend.com/help/Zend-Server-5/zend- server.htm#installation_guide.htm 48 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.
  • 44. Thank you & Q&A • If you have a question you can Type in the Q&A panel Tweet #zendwebinar • Follow us! http://bit ly/cjueZg (Zend Technologies or search for Zend) http://bit.ly/cjueZg http://twitter com/zend http://twitter.com/zend © All rights reserved. Zend Technologies, Inc.
  • 45. Q&A www.zend.com mike.p@zend.com p Please fill out your Session Evaluation! 50 Insert->Header & Footer © All rights reserved. Zend Technologies, Inc.