Apache + PHP 7.1 + Composer + Oracle 12 Driver
2.5K
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;
}
}
Content type
Image
Digest
Size
301.5 MB
Last updated
over 9 years ago
docker pull kmcgill88/php-oracle