|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-04 06:10 UTC] prabinlal at engineer dot com
how can i connect to oracle using php I have installed a php in IIS.
I got this error on browsing the site
Fatal error: Call to undefined function: ocilogon() in C:\abc\php\try.php on line 3
I wrote this code:
<?
require('./db-include.inc');
$iDBConn = OCILogon(DB_USER,DB_PASS,DB_NAME);
?>
my oracle is in D drive
what i have to to please suggest me
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 15:00:01 2025 UTC |
Try this out require('./db-include.php'); $iDBConn = OCILogon(DB_USER, DB_PASS, DB_NAME); echo $iDBConn . " \n "; Code lines in db-include.php <?php define(DB_USER,'username'); define(DB_PASS,'password'); define(DB_NAME,'servername'); ?>