how to configure php with oracle

Any problem with PHP can be disscused here
Post Reply
csoftdev
Posts: 28
Joined: Fri Dec 07, 2007 4:49 pm

how to configure php with oracle

Post by csoftdev »

hi, does anyone here know how to configure php so that it can access an oracle database? i have been trying it for many days, but none of it seems to work. i have an oracle database server running on my local system and a web server too for my development purposes. please, can someone help me out with this one.


Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post by Lixas »

i hope you read this http://www.orafaq.com/faqphp.htm
Please post more details whats is going on, and maibe if you can, post here phpinfo() of your server.
ALSO maybe you firewall blocking something ? try to disable all your firewalls (internals also) and test
Image
Gebbo
Posts: 554
Joined: Tue May 16, 2006 3:22 pm

oracle

Post by Gebbo »

hmmm i havent used oracle for that long so i cannot give advice try googling for help..
.............................:: Spirit of Fire ::..................................

Image
Tails5
Posts: 1302
Joined: Wed Mar 15, 2006 8:09 am
Contact:

Post by Tails5 »

According to the PHP website, "You have to compile PHP with the option --with-oracle[=DIR], where DIR defaults to your environment variable ORACLE_HOME." But I think that only works if you have Linux, I'll try to find you a Windows solution, if you dont have Linux.
Webmaster Yoda: You must confront the cPanel. Then, and only then, a webmaster will you be.
Julius Caesar: Veni, vidi, posti
Lixas
Posts: 750
Joined: Wed Feb 16, 2005 4:21 pm

Post by Lixas »

for windows i think that there should be dll library, which you have to activate in php.ini configuration file
Image
Tails5
Posts: 1302
Joined: Wed Mar 15, 2006 8:09 am
Contact:

Post by Tails5 »

I think it's called oci8.dll look for that in your php.ini file and make sure that its not commented.
Webmaster Yoda: You must confront the cPanel. Then, and only then, a webmaster will you be.
Julius Caesar: Veni, vidi, posti
Post Reply