diff options
Diffstat (limited to 'tests/connect.inc')
-rw-r--r-- | tests/connect.inc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/connect.inc b/tests/connect.inc new file mode 100644 index 0000000000..5e340cf6fa --- /dev/null +++ b/tests/connect.inc @@ -0,0 +1,18 @@ +<?php + +require("details.inc"); + +if (!empty($dbase)) { + $c = @oci_connect($user, $password, $dbase); +} +else { + $c = @oci_connect($user, $password); +} + +if (!$c) { + echo "connect.inc: Failed to connect as '$user' to '$dbase'\n"; + $e = oci_error(); + echo $e['message']."\n"; +} + +?> |