469,300 Members | 2,190 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,300 developers. It's quick & easy.

oracle php connectivity

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
4 3332
Markus
6,050 Expert 4TB
This may be of some help.
Aug 2 '09 #2
zorgi
431 Expert 256MB
Did you edit php.ini? If not try uncommenting following lines

;php_oci8.dll
;php_pdo_oci.dll
Aug 4 '09 #3
Noorain
57
Thank ypu

ya, i edit two lines in php.ini file. but the connection is not active
Aug 4 '09 #4
zorgi
431 Expert 256MB
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.

Similar topics

2 posts views Thread by Axel Dachtler | last post: by
2 posts views Thread by New Devil | last post: by
9 posts views Thread by rahul | last post: by
5 posts views Thread by Scav | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.