By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,871 Members | 696 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,871 IT Pros & Developers. It's quick & easy.

oracle php connectivity

P: 57
i installed xampp & oracle 9i. iu sed following connectivity between php & oracle.

Expand|Select|Wrap|Line Numbers
  1. <?
  2. $username="scott";
  3. $password="tiger";
  4. $servicename="noor";
  5.  
  6. $conn = oci_connect('$username', '$password', '$servicename'); 
  7. if (!$conn){ 
  8. $e = oci_error(); 
  9. print htmlentities($e['message']); 
  10. exit; 
  11. else{ 
  12. echo 'Connection Success!!.'; 
  13. ?>
but its show following message:
Fatal error: Call to undefined function oci_connect() in D:\Program Files\xampp\htdocs\ora-tst\test.php on line

please help how to solve this
Aug 2 '09 #1
Share this Question
Share on Google+
4 Replies

Markus
Expert 5K+
P: 6,050
This may be of some help.
Aug 2 '09 #2

zorgi
Expert 100+
P: 431
Did you edit php.ini? If not try uncommenting following lines

;php_oci8.dll
;php_pdo_oci.dll
Aug 4 '09 #3

P: 57
Thank ypu

ya, i edit two lines in php.ini file. but the connection is not active
Aug 4 '09 #4

zorgi
Expert 100+
P: 431
Is phpinfo showing the oracle extension installed?
Aug 4 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.