21
Thu, Nov
1 New Articles

Product Review: WebSmart PHP Opens the System i to PHP Development

Product Reviews
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times
After more than four months of intensive beta testing, Business Computer Design Int'l (BCD) last month released Websmart PHP for general availability. The development initiative behind the PHP variant of BCD's widely used WebSmart ILE solution began well over a year ago. Today, developers are using the rapid application development tool, with its extensive set of predefined templates, to quickly create Web applications across a variety of industries.In an earlier article, "PHP: A Party Waiting for a Few Good Developers" I explained just exactly what PHP is. To recap, it's a language and development environment specifically for Web applications, typically running on UNIX boxes but now available for System i (V5R3 and V5R4). PHP is a relatively simple but rich scripting language. Literally thousands of open-source projects written in PHP are available for download, and millions of sites run PHP applications.

The major problem with PHP is that there aren't many enterprise-quality rapid application development (RAD) tools. Sure, there are IDEs and text editors, but there is a dearth of tools that take developers through the entire design process for building Web applications with enterprise frameworks. WebSmart PHP seeks to fill that void.

WebSmart PHP shares the same workbench as WebSmart ILE, the edition that generates ILE CGI objects. This gives System i developers the opportunity to choose either deployment technology while having to learn only one development interface.

http://www.mcpressonline.com/articles/images/2002/WebSmart_PHP_PR_5_8_07.V500.jpg

Figure 1: WebSmart PHP provides tight database integration with PHP code.

Several important features of WebSmart PHP qualify it as a RAD tool rather than just an IDE:

  • Intelligent templates for enterprise business applications
  • Tight System i database integration (both DB2 UDB and MySQL databases)
  • Central Repository for optional data modeling
  • Visual HTML design tool
  • PHP functions prototyping, documentation, and management
  • Enterprisewide project and change management

Intelligent Templates for DB2 SQL, MySQL and Record-Level Access

WebSmart PHP supports applications for the System i that use MySQL databases and either DB2 SQL or record-level access (RLA) functions to process the database. The included intelligent templates are grouped into families based on look and feel and database type/access method. Each template performs a typical business function, such as working with data (add, change, delete, search, or list records), using input-capable lists for transaction-oriented applications, etc.

Because WebSmart PHP natively supports MySQL, you can easily create PHP applications that run on the System i or other platforms. The tight integration with MySQL makes it easy for you to work with those databases. You can see all the tables and their fields. To include them in your code, you simply click from a list to select them during the initial wizard process; later, you can drag and drop them to place them into HTML or your PHP code.

The intelligent templates generate complete working programs. Once you have created a PHP program using the templates, you can modify and enhance the code infinitely using the integrated PHP code editor.

Central Repository: Support for Multiple Databases

The Central Repository lets you define business, database, and presentation rules at the database level, effectively providing powerful data modeling capabilities. You attach your rules to fields in your files or tables. Rules can consist of the format of data when presented for output or input purposes, relations (links) to other files or tables, validations, and custom calculations.

The Central Repository also supports inheritance, so you can define certain data types as having code associated with them and then reference those data types with fields in your files. For example, if you store dates in many of your files as eight-digit numbers in YYYYMMDD format, you can define one conversion rule for a date data type to display those dates in a local format and then have all date fields reference that data type.

The Central Repository also supports the System i native DB2 UDB database, MySQL running on System i, or any MySQL database hosted on any server type. WebSmart PHP keeps track of each database type and provides prompts appropriate to each file or table to help you define your rules. Once you've defined rules in the Repository, the intelligent templates can exploit them. For example, as you go through the steps in the design process for a PHP application, WebSmart PHP will include the appropriate repository extensions in the application design. In addition, these extensions are stored on the System i server so a group of developers can share them.

Next-Generation Visual HTML Design Tool

WebSmart PHP includes both text-based and visual HTML design tools. The visual HTML design tool is a third-generation designer that makes it easy to place HTML design elements on your page layouts and intermingle PHP server code with HTML presentation code. This helps you become productive quickly, without having to know how to code HTML tags. You get a true picture of the actual application as you work on it. In addition, you can switch back and forth from design to code modes, so it's easy to use both textual and visual methods to create pages.

You can easily integrate database fields by placing them on your pages, intermingle server-side code in your page layouts without disrupting the visual appearance, and move elements around on the page by clicking and dragging.

http://www.mcpressonline.com/articles/images/2002/WebSmart_PHP_PR_5_8_07.V501.jpg

Figure 2: WebSmart PHP employs a next-generation visual HTML tool.

 

PHP Functions Prototyping and Management

PHP has over 5,000 published functions. Organizing these and navigating through them is a challenge for developers. WebSmart PHP arranges these functions in tabs grouped by category and documents the prototype and syntax of each function. When you're editing PHP code, the editor takes advantage of these prototypes to provide real-time syntax checking, helping to eliminate basic coding errors.

Project and Change Management

WebSmart PHP takes advantage of the same project management features available in the ILE version of the tool. These provide robust enterprisewide development tools, allowing multiple developers to work on a project with tight controls over development efforts. It's also easy to set up Q/A, development, and production environments with WebSmart PHP.

http://www.mcpressonline.com/articles/images/2002/WebSmart_PHP_PR_5_8_07.V502.jpg

Sales

Business Computer Design Int'l, Inc.
950 York Road
Hinsdale, Illinois
USA 60521-9717
Tel: 630.986.0800
Web: www.bcdsoftware.com
Email: This email address is being protected from spambots. You need JavaScript enabled to view it.

Technical Support

ExcelSystems Software Development Inc.
#101-9724 4th Street
Sidney, British Columbia
Canada V8L 2Y7
Tel: 250.655.1766
Fax: 250.655.1733
Web: www.bcdsoftware.com/iseriessupport/
Email: This email address is being protected from spambots. You need JavaScript enabled to view it.

Duncan Kenzie is President and CTO of BCD Technical Support, the development and support group for WebSmart, a popular System i Web development tool, and Nexus, a portal product specifically designed for System i, iSeries, and AS/400 servers. Duncan has 30 years of experience on the midrange systems platform creating software for both green-screen and native Web environments.

Duncan Kenzie
Duncan Kenzie is President and CTO of ExcelSystems Software Development Inc. Duncan’s company is responsible for product development and technical support for BCD International Inc.’s (www.bcdsoftware.com) product line. Duncan has a BA in English Literature from the University of Waterloo, Ontario, and enjoys writing on a variety of subjects. Duncan is a frequent public speaker and has been writing articles about the midrange platform since 1985. He has also been involved in producing programmer productivity and business intelligence tools for 25 years and is the technical lead on products such as WebSmart, WebSmart PHP, and Nexus, leading System i Web tools.  Duncan still enjoys programming, and studies in leadership and self-improvement. He can be reached at This email address is being protected from spambots. You need JavaScript enabled to view it..
BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: