php-src/ext/oci8/tests/connect.inc

38 lines
702 B
PHP
Raw Normal View History

2003-12-19 17:03:12 +00:00
<?php
/*
* Please, change user, password and dbase to match your configuration.
*
* */
2005-09-06 19:33:18 +00:00
$user = "system";
$password = "system";
$dbase = "oracle";
2003-12-19 17:03:12 +00:00
/*
* You should have privileges to create tables in this schema
*
* */
/*
2005-09-06 19:33:18 +00:00
$schema = "system";
*/
2003-12-19 17:03:12 +00:00
2005-09-06 19:33:18 +00:00
$table_name = "tb".substr(str_replace(Array(".", "-"), "_", php_uname("n")), 0, 5);
$type_name = strtoupper("tp".substr(str_replace(Array(".", "-"), "_", php_uname("n")), 0, 5));
2003-12-19 17:03:12 +00:00
if (!empty($dbase)) {
2005-09-06 19:33:18 +00:00
$c = ocilogon($user,$password,$dbase);
2003-12-19 17:03:12 +00:00
}
else {
2005-09-06 19:33:18 +00:00
$c = ocilogon($user,$password);
2003-12-19 17:03:12 +00:00
}
if (!empty($schema)) {
$schema = $schema.".";
}
else {
$schema = '';
}
?>