SlideShare une entreprise Scribd logo
1  sur  39
How to Start up with PHP in IBM i June, 2007 Sam Pinkhasov Project Manager for IBM products [email_address]
Agenda ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
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
[object Object],[object Object],[object Object],[object Object],First Steps
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Install Zend Core and Zend Studio
Setting up PHP in IBM i ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Setting up PHP in IBM i ,[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],Installation verification
Zend Core Console  http://i5_server:89
Zend Subsystem –  wrkactjob sbs(Zend)
[object Object],[object Object],Run PHP Application The demo application sources are available in  www/zendcore/htdocs/Zend_Navigator_Demo .
Run Zend Navigator http://i5_server:89/Zend_Navigator_Demo/login.php
Zend Core – Debug Set Up
Zend Core – Restart Apache ,[object Object]
Zend Studio - Debug Set Up
Writing a simple PHP code ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Writing a simple PHP code
Running PHP command line ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Accessing DB2/400 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Server connection – db2_connect  API ,[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Sample code accessing database
Program Result  http://i5_server:89/DB2_example .php
Recommendations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Other File Functions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Look it up in the PHP manual to see   files examples .
PHP Toolkit for i5/OS ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
PHP Toolkit for i5/OS – list of functions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
PHP Toolkit functions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],Sample code calling an RPG program
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Sample code calling an RPG program
PHP Toolkit  Resources ,[object Object],[object Object],[object Object]
PHP Toolkit Templates ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Product Definition ,[object Object],|
Technical Overview  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],|
|  5250 Bridge Diagram
|  Demo Program – Subfile Application
Resources:  Books ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Resources:  Web sites ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Resources :  Web sites ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Resources:  Sample Code ,[object Object],[object Object],[object Object],[object Object],[object Object]

Contenu connexe

Tendances

What is new in Notes & Domino Deleopment V10.x
What is new in Notes & Domino Deleopment V10.xWhat is new in Notes & Domino Deleopment V10.x
What is new in Notes & Domino Deleopment V10.xUlrich Krause
 
Drive by-download attack evolution zero nights v3
Drive by-download attack evolution zero nights v3Drive by-download attack evolution zero nights v3
Drive by-download attack evolution zero nights v3Sergey Soldatov
 
Vladimir Kropotov - Drive-By-Download attack evolution before and after vulne...
Vladimir Kropotov - Drive-By-Download attack evolution before and after vulne...Vladimir Kropotov - Drive-By-Download attack evolution before and after vulne...
Vladimir Kropotov - Drive-By-Download attack evolution before and after vulne...DefconRussia
 
PHP-MySQL Database Connectivity Using XAMPP Server
PHP-MySQL Database Connectivity Using XAMPP ServerPHP-MySQL Database Connectivity Using XAMPP Server
PHP-MySQL Database Connectivity Using XAMPP ServerRajiv Bhatia
 
Building and Deploying PHP Apps Using phing
Building and Deploying PHP Apps Using phingBuilding and Deploying PHP Apps Using phing
Building and Deploying PHP Apps Using phingMihail Irintchev
 
REST in ( a mobile ) peace @ WHYMCA 05-21-2011
REST in ( a mobile ) peace @ WHYMCA 05-21-2011REST in ( a mobile ) peace @ WHYMCA 05-21-2011
REST in ( a mobile ) peace @ WHYMCA 05-21-2011Alessandro Nadalin
 
Phing: Building with PHP
Phing: Building with PHPPhing: Building with PHP
Phing: Building with PHPhozn
 
Virtual Bolt Workshop - Dell - April 8 2020
Virtual Bolt Workshop - Dell - April 8 2020Virtual Bolt Workshop - Dell - April 8 2020
Virtual Bolt Workshop - Dell - April 8 2020Puppet
 
RESTful API Design & Implementation with CodeIgniter PHP Framework
RESTful API Design & Implementation with CodeIgniter PHP FrameworkRESTful API Design & Implementation with CodeIgniter PHP Framework
RESTful API Design & Implementation with CodeIgniter PHP FrameworkBo-Yi Wu
 
IBM CAPI:概要 (An overview of IBM CAPI)
IBM CAPI:概要 (An overview of IBM CAPI)IBM CAPI:概要 (An overview of IBM CAPI)
IBM CAPI:概要 (An overview of IBM CAPI)Mr. Vengineer
 
Automated Deployment With Phing
Automated Deployment With PhingAutomated Deployment With Phing
Automated Deployment With PhingDaniel Cousineau
 
Open Source RAD with OpenERP 7.0
Open Source RAD with OpenERP 7.0Open Source RAD with OpenERP 7.0
Open Source RAD with OpenERP 7.0Quang Ngoc
 

Tendances (18)

What is new in Notes & Domino Deleopment V10.x
What is new in Notes & Domino Deleopment V10.xWhat is new in Notes & Domino Deleopment V10.x
What is new in Notes & Domino Deleopment V10.x
 
Php technical presentation
Php technical presentationPhp technical presentation
Php technical presentation
 
Drive by-download attack evolution zero nights v3
Drive by-download attack evolution zero nights v3Drive by-download attack evolution zero nights v3
Drive by-download attack evolution zero nights v3
 
Vladimir Kropotov - Drive-By-Download attack evolution before and after vulne...
Vladimir Kropotov - Drive-By-Download attack evolution before and after vulne...Vladimir Kropotov - Drive-By-Download attack evolution before and after vulne...
Vladimir Kropotov - Drive-By-Download attack evolution before and after vulne...
 
MySQL Presentation
MySQL PresentationMySQL Presentation
MySQL Presentation
 
PHP-MySQL Database Connectivity Using XAMPP Server
PHP-MySQL Database Connectivity Using XAMPP ServerPHP-MySQL Database Connectivity Using XAMPP Server
PHP-MySQL Database Connectivity Using XAMPP Server
 
Building and Deploying PHP Apps Using phing
Building and Deploying PHP Apps Using phingBuilding and Deploying PHP Apps Using phing
Building and Deploying PHP Apps Using phing
 
REST in ( a mobile ) peace @ WHYMCA 05-21-2011
REST in ( a mobile ) peace @ WHYMCA 05-21-2011REST in ( a mobile ) peace @ WHYMCA 05-21-2011
REST in ( a mobile ) peace @ WHYMCA 05-21-2011
 
You suck at Memory Analysis
You suck at Memory AnalysisYou suck at Memory Analysis
You suck at Memory Analysis
 
Phing: Building with PHP
Phing: Building with PHPPhing: Building with PHP
Phing: Building with PHP
 
Virtual Bolt Workshop - Dell - April 8 2020
Virtual Bolt Workshop - Dell - April 8 2020Virtual Bolt Workshop - Dell - April 8 2020
Virtual Bolt Workshop - Dell - April 8 2020
 
Ant vs Phing
Ant vs PhingAnt vs Phing
Ant vs Phing
 
Php Ppt
Php PptPhp Ppt
Php Ppt
 
RESTful API Design & Implementation with CodeIgniter PHP Framework
RESTful API Design & Implementation with CodeIgniter PHP FrameworkRESTful API Design & Implementation with CodeIgniter PHP Framework
RESTful API Design & Implementation with CodeIgniter PHP Framework
 
IBM CAPI:概要 (An overview of IBM CAPI)
IBM CAPI:概要 (An overview of IBM CAPI)IBM CAPI:概要 (An overview of IBM CAPI)
IBM CAPI:概要 (An overview of IBM CAPI)
 
Automated Deployment With Phing
Automated Deployment With PhingAutomated Deployment With Phing
Automated Deployment With Phing
 
PHP Presentation
PHP PresentationPHP Presentation
PHP Presentation
 
Open Source RAD with OpenERP 7.0
Open Source RAD with OpenERP 7.0Open Source RAD with OpenERP 7.0
Open Source RAD with OpenERP 7.0
 

Similaire à How To Start Up With PHP In IBM i

PHP on IBM i Tutorial
PHP on IBM i TutorialPHP on IBM i Tutorial
PHP on IBM i TutorialZendCon
 
Interface Modernization - CGI Example
Interface Modernization - CGI ExampleInterface Modernization - CGI Example
Interface Modernization - CGI ExampleThomas Wolfe
 
Simplify your professional web development with symfony
Simplify your professional web development with symfonySimplify your professional web development with symfony
Simplify your professional web development with symfonyFrancois Zaninotto
 
(phpconftw2012) PHP as a Middleware in Embedded Systems
(phpconftw2012) PHP as a Middleware in Embedded Systems(phpconftw2012) PHP as a Middleware in Embedded Systems
(phpconftw2012) PHP as a Middleware in Embedded Systemssosorry
 
Edp bootstrapping a-software_company
Edp bootstrapping a-software_companyEdp bootstrapping a-software_company
Edp bootstrapping a-software_companyGanesh Kulkarni
 
Zend Products and PHP for IBMi
Zend Products and PHP for IBMi  Zend Products and PHP for IBMi
Zend Products and PHP for IBMi Shlomo Vanunu
 
How do I securely deploy Internet websites in PHP on my IBMi?
How do I securely deploy Internet websites in PHP on my IBMi?How do I securely deploy Internet websites in PHP on my IBMi?
How do I securely deploy Internet websites in PHP on my IBMi?Zend by Rogue Wave Software
 
PHP and FastCGI Performance Optimizations
PHP and FastCGI Performance OptimizationsPHP and FastCGI Performance Optimizations
PHP and FastCGI Performance OptimizationsAlessandro Pilotti
 
Zend Amf And Flex
Zend Amf And FlexZend Amf And Flex
Zend Amf And Flexriafox
 
Php7 extensions workshop
Php7 extensions workshopPhp7 extensions workshop
Php7 extensions workshopjulien pauli
 
Head First Zend Framework - Part 1 Project & Application
Head First Zend Framework - Part 1 Project & ApplicationHead First Zend Framework - Part 1 Project & Application
Head First Zend Framework - Part 1 Project & ApplicationJace Ju
 
Symfony2 Introduction Presentation
Symfony2 Introduction PresentationSymfony2 Introduction Presentation
Symfony2 Introduction PresentationNerd Tzanetopoulos
 
ColdFusion 11 Overview - CFSummit 2013
ColdFusion 11 Overview - CFSummit 2013ColdFusion 11 Overview - CFSummit 2013
ColdFusion 11 Overview - CFSummit 2013Rupesh Kumar
 
Php Frameworks
Php FrameworksPhp Frameworks
Php FrameworksRyan Davis
 
PHP Toolkit from Zend and IBM: Open Source on IBM i
PHP Toolkit from Zend and IBM: Open Source on IBM iPHP Toolkit from Zend and IBM: Open Source on IBM i
PHP Toolkit from Zend and IBM: Open Source on IBM iAlan Seiden
 
Introduction into PHP5 (Jeroen van Sluijs)
Introduction into PHP5 (Jeroen van Sluijs)Introduction into PHP5 (Jeroen van Sluijs)
Introduction into PHP5 (Jeroen van Sluijs)Stefan Koopmanschap
 

Similaire à How To Start Up With PHP In IBM i (20)

PHP on IBM i Tutorial
PHP on IBM i TutorialPHP on IBM i Tutorial
PHP on IBM i Tutorial
 
Interface Modernization - CGI Example
Interface Modernization - CGI ExampleInterface Modernization - CGI Example
Interface Modernization - CGI Example
 
2014 cf summit_clustering
2014 cf summit_clustering2014 cf summit_clustering
2014 cf summit_clustering
 
Simplify your professional web development with symfony
Simplify your professional web development with symfonySimplify your professional web development with symfony
Simplify your professional web development with symfony
 
(phpconftw2012) PHP as a Middleware in Embedded Systems
(phpconftw2012) PHP as a Middleware in Embedded Systems(phpconftw2012) PHP as a Middleware in Embedded Systems
(phpconftw2012) PHP as a Middleware in Embedded Systems
 
Edp bootstrapping a-software_company
Edp bootstrapping a-software_companyEdp bootstrapping a-software_company
Edp bootstrapping a-software_company
 
Zend Products and PHP for IBMi
Zend Products and PHP for IBMi  Zend Products and PHP for IBMi
Zend Products and PHP for IBMi
 
How do I securely deploy Internet websites in PHP on my IBMi?
How do I securely deploy Internet websites in PHP on my IBMi?How do I securely deploy Internet websites in PHP on my IBMi?
How do I securely deploy Internet websites in PHP on my IBMi?
 
PHP and FastCGI Performance Optimizations
PHP and FastCGI Performance OptimizationsPHP and FastCGI Performance Optimizations
PHP and FastCGI Performance Optimizations
 
Zend Amf And Flex
Zend Amf And FlexZend Amf And Flex
Zend Amf And Flex
 
Php myadmin
Php myadminPhp myadmin
Php myadmin
 
Php7 extensions workshop
Php7 extensions workshopPhp7 extensions workshop
Php7 extensions workshop
 
Head First Zend Framework - Part 1 Project & Application
Head First Zend Framework - Part 1 Project & ApplicationHead First Zend Framework - Part 1 Project & Application
Head First Zend Framework - Part 1 Project & Application
 
Symfony2 Introduction Presentation
Symfony2 Introduction PresentationSymfony2 Introduction Presentation
Symfony2 Introduction Presentation
 
ColdFusion 11 Overview - CFSummit 2013
ColdFusion 11 Overview - CFSummit 2013ColdFusion 11 Overview - CFSummit 2013
ColdFusion 11 Overview - CFSummit 2013
 
Lamp Zend Security
Lamp Zend SecurityLamp Zend Security
Lamp Zend Security
 
Php Frameworks
Php FrameworksPhp Frameworks
Php Frameworks
 
Php Presentation
Php PresentationPhp Presentation
Php Presentation
 
PHP Toolkit from Zend and IBM: Open Source on IBM i
PHP Toolkit from Zend and IBM: Open Source on IBM iPHP Toolkit from Zend and IBM: Open Source on IBM i
PHP Toolkit from Zend and IBM: Open Source on IBM i
 
Introduction into PHP5 (Jeroen van Sluijs)
Introduction into PHP5 (Jeroen van Sluijs)Introduction into PHP5 (Jeroen van Sluijs)
Introduction into PHP5 (Jeroen van Sluijs)
 

How To Start Up With PHP In IBM i

Notes de l'éditeur

  1. 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.
  2. 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.
  3. 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.
  4. 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
  5. 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.
  6. 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