Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
/ php-PDO_IBM-ibmi Public archive

Fork of PHP ibm_db2 connector that maintains IBM i connectivity

License

Notifications You must be signed in to change notification settings

IBM/php-PDO_IBM-ibmi

Repository files navigation

PDO_IBM

Interface for PHP to Db2 for i. This is a fork of the PDO_IBM nterface for PHP to Db2 for z/OS and LUW.

This code is only to be compiled and run on IBM i and offers no guaranteed compatibility with other platforms.

Prerequisites

You will need PHP installed, as well as some key development tools:

yum install make-gnu gcc

To get started with IBM i RPMs, see http://ibm.biz/ibmi-rpms

How to run sample program

connect.php:-

<?php
        $db = null;
        $dsn = "ibm:<DSN NAME>";
        $user = "<USER>";
        $pass = "<PASSWORD>";

        $pdo = new PDO($dsn, $user, $pass);
        if ($pdo)
           print "Connection Successful.\n";

?>

To run the sample:- php connect.php

Contributing:

See CONTRIBUTING.md

About

Fork of PHP ibm_db2 connector that maintains IBM i connectivity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages