• 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
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.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

  • When Cloud Meets DevOps on IBM i
  • JD Edwards Roadmap Reveals Decisions To Be Made
  • IBM Completes Migration of Knowledge Center to IBM Documentation
  • Four Hundred Monitor, April 7
  • Crazy Idea Number 615: Variable Priced Power Systems Partitions
  • Do The Math When Looking at IBM i Hosting For Cost Savings
  • Guru: Web Services, DATA-INTO and DATA-GEN, Part 1
  • Oracle Versus Rimini Slogs On In Second Decade
  • HCI Is The Dominant Converged System, Probably For Good
  • Skytap To Expand IBM i Cloud Offering

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 © 2021 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.