Find examples of using ODBC with iSeries™ Access for Linux®.
IBM® grants you a nonexclusive copyright license to use all programming code examples from which you can generate similar function tailored to your own specific needs.
SUBJECT TO ANY STATUTORY WARRANTIES WHICH CANNOT BE EXCLUDED, IBM, ITS PROGRAM DEVELOPERS AND SUPPLIERS MAKE NO WARRANTIES OR CONDITIONS EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT, REGARDING THE PROGRAM OR TECHNICAL SUPPORT, IF ANY.
UNDER NO CIRCUMSTANCES IS IBM, ITS PROGRAM DEVELOPERS OR SUPPLIERS LIABLE FOR ANY OF THE FOLLOWING, EVEN IF INFORMED OF THEIR POSSIBILITY:
SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF DIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, SO SOME OR ALL OF THE ABOVE LIMITATIONS OR EXCLUSIONS MAY NOT APPLY TO YOU.
See how the Apache Software Foundation's web server, PHP, and the ODBC Driver in iSeries Access for Linux can work together to access database data on an iSeries server.
Instructions for setting up PHP and Apache are in the Redpiece Linux Integration with OS/400® on the IBM eServer™ iSeries Server, (SG24-6551). Read section 2.6 Three-tier application setup using PHP and Apache. Additional instructions are in index.html or index.php in the download file.
Requirements: a Linux machine running PHP under the Apache web server, the unixODBC driver manager, and the ODBC Driver in iSeries Access for Linux. PHP must have unixODBC driver manager support compiled in.