• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Coding Is Never Without A Reason; PHP Has 10

    February 1, 2016 Dan Burger

    PHP is the open source success story for IBM i. Its support by IBM and particularly Zend Technologies has given it quite a boost. And it’s proved to be capable of leveraging the IBM i operating system, DB2 for i, and RPG code. Beyond that, it is compatible with almost every operating system and hardware platform you can name, which provides the cross-platform capabilities that demolishes siloed information.

    Several IBM i independent software vendors offer PHP development tools. Two of them, BCD Software and Zend Technologies, released an e-book last week titled Top Ten Reasons to Choose PHP for IBM i Web Application Development. The foreword to the book was written by Alan Seiden, a PHP on IBM i subject matter expert. Seiden talked about PHP with IT Jungle on the phone last week.

    PHP is not a mystery, but it is sometimes misunderstood and even feared. Seiden describes PHP as an enhancement for RPG. It allows RPG developers to do more with RPG, the overwhelming language of choice in IBM i environments. It’s not a replacement for RPG, if anyone actually thinks that. RPG is still the best choice for heavy duty business logic. Among RPG programmers, you’ll find little dissent about that.

    RPG remains in control, Seiden points out, but it can call PHP to perform tasks such as sending HTML-oriented emails, creating spreadsheets and pdfs, or generating charts and graphs, for instance.

    “The RPG programmer who doesn’t know these techniques may think they are difficult or may not want to step forward and say ‘we can do that on IBM i,'” Seiden says. “But we have to have confidence that we can do things on IBM i. Sometimes when we wait to do new things, management becomes impatient with the platform and, to get what they want, they go to another department or some other outside solution. In many instances, those are things that can be done with RPG or PHP.”

    There are developers that write logic in PHP for use on the Web. They’ve been doing it for years. That’s not because they can’t do it in RPG, but because it is reusable when written in PHP. It’s also possible to call PHP from RPG. So there are RPG interactive programs being written that calls PHP code that contains logic.

    So PHP is not only a scripting language used for creating graphical interfaces for green-screen applications. Usually that means there is PHP code doing something that RPG code doesn’t do as easily. TCP/IP work or Web services or manipulating images come to mind, but there are others, too.

    Seiden calls it “batch PHP” when PHP code is called from RPG.

    “If you are an RPG genius like Scott Klement, you could write everything in RPG. But in some instances, PHP is the simpler choice for the average programmer,” Seiden says.

    The Ten Reasons to Choose PHP e-book is a quick read. Each reason is concisely presented in several hundred words. A few of the reasons in this list include: an easy learning curve; leveraging RPG, DB2, and IBM i; mobile deployments; modern language design features; and an ecosystem of tools. The book was written by Duncan Kenzie, chief knowledge officer for BCD and Quadrant Software. Download the book in pdf format by following this link.

    The Top Ten Reasons to Choose PHP for IBNM i Web Application Development includes this list of similarities between RPG and PHP.

    Seiden, a top consultant in the PHP on IBM i arena, sees PHP as a reason IBM i shops have stayed on the platform, even as companies are bought and sold and end up being owned by an entity with no IBM i experience. “It provides a little bit of a hedge,” he says. “PHP helps retain loyalty to the platform, while also providing the ability to move workloads other places if necessary. It also allows workloads designed to run in other environments to be moved to the i.”

    Something else to take into account is the often-mentioned top concern among executives at IBM i shops about what to do with RPG code in the long run considering that developers and system admins are middle-aged or older and in short supply. PHP has a younger demographic, so those that learn RPG skills will help fill that potential void. Sounds like a happy ending, and who’s to say it won’t end that way?

    RELATED STORIES

    BCD Cranks Up Its PHP Engine

    PHP Changes IBM i Shops, And They Change The PHP Community

    Zend And BCD Get A Little Closer For PHP

    BCD Advances PHP-on-i Development in WebSmart

    PHP And SQL Driving Modernization Strategies At IBM i Shops, Zend Says

    Congratulations, PHP: You Are Legacy Now

    Avoiding Mistakes With PHP On IBM i Platforms

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    VISUAL LANSA 16 WEBINAR

    Trying to balance stability and agility in your IBM i environment?

    Join this webinar and explore Visual LANSA 16 – our enhanced professional low-code platform designed to help organizations running on IBM i evolve seamlessly for what’s next.

    🎙️VISUAL LANSA 16 WEBINAR

    Break Monolithic IBM i Applications and Unlock New Value

    Explore modernization without rewriting. Decouple monolithic applications and extend their value through integration with modern services, web frameworks, and cloud technologies.

    🗓️ July 10, 2025

    ⏰ 9 AM – 10 AM CDT (4 PM to 5 PM CEST)

    See the webinar schedule in your time zone

    Register to join the webinar now

    What to Expect

    • Get to know Visual LANSA 16, its core features, latest enhancements, and use cases
    • Understand how you can transition to a MACH-aligned architecture to enable faster innovation
    • Discover native REST APIs, WebView2 support, cloud-ready Azure licensing, and more to help transform and scale your IBM i applications

    Read more about V16 here.

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    Profound Logic Software:  What's the State of IBM i Modernization? Read the new white paper!
    System i Developer:  RPG & DB2 Summit - March 22-24 in Dallas. Register by Feb 12 and save $300!
    BCD:  IBM i eBook: Top 10 Reasons to Choose PHP. Download now »

    Parsing Delimited Text Data Natively in SQL, Part 1 Where’s MKS Implementer? Alive and Well At PTC

    Leave a Reply Cancel reply

Volume 26, Number 05 -- February 1, 2016
THIS ISSUE SPONSORED BY:

BCD Software
Profound Logic Software
Computer Keyes
Chrono-Logic
Manta Technologies

Table of Contents

  • Ain’t Nobody’s Business But Your Own
  • Scared of Tests? MIMIX Has You Covered with ‘Virtual Switch’ Feature
  • Big IBM i Shops Get Beefier Memory
  • Yet Another IBM Pricing Scheme For Power MSPs
  • Coding Is Never Without A Reason; PHP Has 10

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Liam Allan Shares What’s Coming Next With Code For IBM i
  • From Stable To Scalable: Visual LANSA 16 Powers IBM i Growth – Launching July 8
  • VS Code Will Be The Heart Of The Modern IBM i Platform
  • The AS/400: A 37-Year-Old Dog That Loves To Learn New Tricks
  • IBM i PTF Guide, Volume 27, Number 25
  • Meet The Next Gen Of IBMers Helping To Build IBM i
  • Looks Like IBM Is Building A Linux-Like PASE For IBM i After All
  • Will Independent IBM i Clouds Survive PowerVS?
  • Now, IBM Is Jacking Up Hardware Maintenance Prices
  • IBM i PTF Guide, Volume 27, Number 24

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle