PHP: Zend for I5/OS
Total Page:16
File Type:pdf, Size:1020Kb
Front cover PHP: Zend for i5/OS Learn how to install and administer Discover valuable development tips and advice Security, globalization, Zend Platform for i5/OS, and more! Gary Mullen-Schultz Melissa Anderson Vlatko Kosturjak ibm.com/redbooks International Technical Support Organization PHP: Zend for i5/OS January 2007 SG24-7327-00 Note: Before using this information and the product it supports, read the information in “Notices” on page vii. First Edition (January 2007) This edition applies to Version 1.0, Release 5.0, Modification 0.0 of Zend Core for i5/OS, Version 2.0, Release 1.0, Modification 2.0 of Zend Platform for i5/OS, and Version 5.0, Release 2.0, Modification 0.0 of Zend Studio for i5/OS. © Copyright International Business Machines Corporation 2007. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . vii Trademarks . viii Preface . ix The team that wrote this book . ix Become a published author . .x Comments welcome. .x Chapter 1. Welcome to PHP on i5/OS! . 1 1.1 Welcome! . 2 1.1.1 IBM and Zend Core. 2 1.1.2 Zend Core for IBM . 2 1.2 Previous support of PHP on i5/OS . 3 1.3 Current support of PHP on i5/OS . 3 1.3.1 Zend Core for i5/OS . 3 1.3.2 Zend Studio for i5/OS . 4 1.3.3 Zend Platform for i5/OS . 4 1.4 How i5 implementation differs from Zend Core. 5 1.5 Benefit to developers and customers . 5 Chapter 2. Overview of PHP. 7 2.1 History of PHP. 8 2.2 Why PHP?. 8 2.3 Who is using PHP? . 9 2.4 Quick comparison to Java. 9 Chapter 3. Administration . 11 3.1 Packaging . 12 3.2 Installing Zend Core for i5/OS. 12 3.2.1 Before you begin. 12 3.2.2 Installing the Zend Core for i5/OS product . 15 3.2.3 Starting the Zend Core for i5/OS environment . 18 3.2.4 Verifying the installation . 19 3.2.5 Common installation errors . 21 3.2.6 Reinstalling Zend Core for i5/OS . 21 3.2.7 Uninstalling Zend Core for i5/OS . 22 3.2.8 Product structure. 22 3.2.9 Runtime environment . 24 3.3 Configuring Zend Core for i5/OS. 26 3.3.1 Administration tools. 26 3.4 Configuring multiple instances . 30 3.4.1 Multiple i5/OS Apache instances, one PHP server. 30 3.4.2 Multiple i5/OS Apache instances, multiple PHP servers. 32 3.4.3 One i5/OS Apache instance, multiple PHP servers . 34 3.5 Backing up Zend Core for i5/OS . 36 Chapter 4. Application development. 39 4.1 PHP and Web development . 40 4.1.1 Quick Web example . 40 © Copyright IBM Corp. 2007. All rights reserved. iii 4.2 PHP as a command-line scripting language . 41 4.2.1 PHP interactive mode . 41 4.2.2 PHP one-line scripts (popularly called oneliners) . 43 4.2.3 PHP and scripting . 43 4.2.4 Calling PHP from CL. 45 4.3 Development tools . 45 4.3.1 Zend Studio for i5/OS . 46 4.3.2 Eclipse . 47 4.3.3 NuSphere PhpED . 48 4.3.4 Maguma . 49 4.4 i5 PHP API Toolkit functions . 49 4.4.1 Main functions. 50 4.5 XML support . 54 4.6 XML-RPC support . 55 4.7 SOAP support . 56 Chapter 5. Database access. 59 5.1 DB2 . 60 5.1.1 DB2 access options . 60 5.1.2 Performance considerations . 69 5.1.3 Troubleshooting . 71 5.2 MySQL . 71 5.2.1 MySQL architecture . 71 5.2.2 MySQL directory structure . ..