connections to oracle...
| From: | Kit DeKat | Date: | Tue, 29 Apr 2003 14:06:39 +0000 |
| Subject: | connections to oracle... | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-19716@lists.php.net to get a copy of this message | ||
ive been trying to incorporate PHP into the webpages
throughout my company, but 90% of these pages are using
Perl make Oracle connections and handling all the SQL
calls. When i try to use the ora_* and oci* functions
in PHP, the errors messages tell me that said function
is undefined.
Fatal error: Call to undefined function: ocilogon()
in D:\var\www\html\tgrounds\dbtest.php on line...PHP code is as follows: <?php putenv('ORACLE_SID=kdk_db'); putenv('ORACLE_HOME=x:\oracle8i'); putenv('TNS_ADMIN=x:\oracle8i\network\admin'); $foo = exec("echo %ORACLE_SID%");
echo $foo; // prints 'kdk_db'$conn = OCILogon("scott","tiger","") or // <--- stops here
die("Couldn't logon to database");
// $dbcon = ora_login("scott","tiger");
if( ora_open($dbcon) ){
echo "opened successfully";
ora_close($dbcon);
} else {
echo "cant open dbconn: ". ora_error();} ?> Best regards,
Kit DeKat mailto:kitdekat@earthlink.netSystems Programmer -----BEGIN PERL GEEK CODE BLOCK----- Version: 0.01 P++>+++@$c---P6-R >++M+$O+>+++(++)$MA >+E+PU >+BD >++C >*$ D++S++>+++@X>++WP?MO?PP!n?CO?PO--o?G A--Ee+++Ev w+m! ------END PERL GEEK CODE BLOCK------