I am designing a generic page in PHP with oracle database in the backend. I don't know how to successfully connect and close the front and back end? Please help.
-
-
Answer:
I've never implemented this myself, but have you looked through this resource? http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/oow10/php_db/php_db.htm Specifically, review the section "Creating a Standard Connection". What error(s) you are getting?Using the PHP OCI8 extension gives you maximum control over what you are needing to do.If you already know all this, then have you made sure to close all your open connections by using (you'll need to close every created connection to avoid resource leaks)? oci_close($conn);
Christopher Dabel at Quora Visit the source
Other answers
Depends on how you are using php! If you are using php through Xampp! Its really easy: Make sure you have Xampp installed. Download Oracle Instant Client From Oracle Website. (Go for 32bit as XAMPP is 32bit architecture) Unzip the instantclient to your c:/xampp/php/ext/ folder Add 'c:/xampp/php/ext/instantclient11_2' ( or whatever the file location of unzipped folder is) to your Environment Variables before any Oracle variable that is already there. To set Environment variable. Open properties for my computer, open advanced settings and you will find Environment variable button, click on it and find the "path" in the given variables to edit it. Now, open XAMPP control panel and click config button for apache, find php.ini file to open and edit it. Search for 'oci8' mentioned in the php.ini text file. Your will see two entries for oci8 , one for instant client 10gR2 ,and other one for instant client 11gR2. Just remove the semicolon(';') from the begining of the line. Restart Xampp Start apache and try running any php script which uses "ociconnect" to connect to oracle database. Make sure you put all the parameters(username,passeword, databaseHost:port/sid) in Ociconnect function correctly.
Naman Rajpal
Related Q & A:
- How can you erase a link on the tab that I don't want to have anymore?Best solution by Yahoo! Answers
- Don't know a name of the song? What to do?Best solution by Yahoo! Answers
- Feeling sick, but I don't know what it's from?Best solution by Yahoo! Answers
- Is there any way I can get my MSN password back if I don't know the secret question that it asks?Best solution by Yahoo! Answers
- How do I find a certain tv channel if I don't know what number it is?Best solution by timewarnercable.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.