Sign inSign up

kmcgill88/php-oracle

By kmcgill88

Updated over 9 years ago

Apache + PHP 7.1 + Composer + Oracle 12 Driver

Image
0

2.5K

kmcgill88/php-oracle repository overview

This image allows you to use the OCI8 database extension for PHP.

<?php

// Connects to the XE service (i.e. database) on the "localhost" machine
$conn = oci_connect('user', 'password', 'localhost/XE');
if (!$conn) {
    $e = oci_error();
    trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}

$stid = oci_parse($conn, 'SELECT * FROM employees');
oci_execute($stid);

while ($row = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS)) {
    foreach ($row as $item) {
        echo $item;
    }
}

Tag summary

Content type

Image

Digest

Size

301.5 MB

Last updated

over 9 years ago

docker pull kmcgill88/php-oracle