1. How to Start up with PHP in IBM i June, 2007 Sam Pinkhasov Project Manager for IBM products [email_address]
2.
3. Zend Platform with 5250 Bridge IBM i DB2/400 Pgm, CMD, Spooled file Database Business Zend Studio Zend Core with Toolkit APIs Apache webserver Zend PHP Products for IBM I Diagram Zend Guard Windows/Linux Browser
Lists the db2_ APIs documented in php.net Note: System i application developers should avoid use of APIs denoted with a red box. The reason is that the use of this API is less efficient or performs more slowly than another available option. For example, avoid the use of db2_exec, especially if the statement is being executed multiple times in the application. Instead, use db2_prepare to prepare the statement once using parameter markers, then execute the prepared statement using the db2_execute API.
Lists the db2_ APIs documented in php.net Note: System i application developers should avoid use of APIs denoted with a red box. The reason is that the use of this API is less efficient or performs more slowly than another available option. For example, avoid the use of db2_exec, especially if the statement is being executed multiple times in the application. Instead, use db2_prepare to prepare the statement once using parameter markers, then execute the prepared statement using the db2_execute API.
Lists the db2_ APIs documented in php.net Note: System i application developers should avoid use of APIs denoted with a red box. The reason is that the use of this API is less efficient or performs more slowly than another available option. For example, avoid the use of db2_exec, especially if the statement is being executed multiple times in the application. Instead, use db2_prepare to prepare the statement once using parameter markers, then execute the prepared statement using the db2_execute API.
The 5250 Bridge API offers a simple APIs for PHP applications to grab fields and strings from an interactive (5250) program and wrap them into real web applications. This way you can seamlessly integrate output of monolithic green screen applications into your PHP web application without the need to rewrite the business logic and directly access the database
Here are the steps how PHP interacts with i5 on-line programs PHP will start an i5 interactive (5250) session in QINTER subsystem utilizing 5250 Bridge API.. This diagram shows how the 5250 Bridge can be used to access information from a 5250 program and leverage it to either be displayed in a browser-based environment or to populate screen values: 1. PHP sends a 'start session' request to the 5250 Program using the 5250 Bridge. 2. The 5250 Bridge returns a confirmation to PHP that the session has started. 3. The 5250 Bridge sends current screen information in XML format to PHP (e.g. format name, input and output fields and current cursor position). 4. The input values can be automatically entered into the program or sent on in an html format for user input.
Here a sample i5/OS online program displaying users where user detailed can be displayed by entering 5 in the option column Next sample, overlying the 5250 green screen, shows a simple web interface of the same i5/OS online program created by the 5250 Bridge Next sample, overlying the simple web interface, shows extended web interface of the same i5/OS online program. This sample shows how a PHP programmer can use the 5250 Bridge and extent a regular i5/OS online program to a web by adding images and utilizing Ajax for better interactive interface