• 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
    Manta Technologies

    The Leader in IBM i Education!
    Need training on anything i?
    Manta is all you need.

    During the month of May, when you purchase a license for the Free-Form RPG Programming series for any term (one, two, or three years) and any user license level, and you will get the equivalent license for the Coding Free-Form RPG course for FREE.

    130 courses and competency exams on:
    · IBM i operations
    · System Management and Security
    · IBM i Programming Tools
    · Programming in RPG, COBOL, CL, Java
    · Web Development
    · SQL, DB2, Query

    Product features:
    · Runs in every popular browser
    · Available 24/7/365
    · Free Student Reference Guides
    · Free Student Administration
    · Concurrent User License
    · Built-In IBM i Simulator

    You can download our 200-page catalog and take sample sessions at MantaTech.com.

    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

  • COMMON Set for First Annual Conference in Three Years
  • API Operations Management for Safe, Powerful, and High Performance APIs
  • What’s New in IBM i Services and Networking
  • Four Hundred Monitor, May 18
  • IBM i PTF Guide, Volume 24, Number 20
  • IBM i 7.3 TR12: The Non-TR Tech Refresh
  • IBM i Integration Elevates Operational Query and Analytics
  • Simplified IBM i Stack Bundling Ahead Of Subscription Pricing
  • More Price Hikes From IBM, Now For High End Storage
  • Big Blue Readies Power10 And IBM i 7.5 Training for Partners

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 © 2022 IT Jungle

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.