Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connecting to a remote database using PHP

schilling399Jun 19 2015 — edited Jul 21 2015

Hello experts,

I've looked into many options so far and haven't come very far in my endeavor. I'm building a web based dashboard for a company I am contracted to and I'm having a very difficult time connecting to an oracle database from my dashboard. I'm attempting to use PHP to create a connection to the database. Then I'd like to query the database and present the results on the dashboard. The database is password protected and likewise the server hosting the database is also password protected. I'm not finding much help in other places I've looked and this is the only bump in the road so far for my dashboard build.

I was told to look into using the database URI but I wasn't sure if that would work since the database is not on the web server that the dashboard will be hosted on. I've also looked into using the PDO::__construct() method but its unclear what names and information I should be using for parameters.

I'm really needing some help on this and any help or advice is appreciated.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 18 2015
Added on Jun 19 2015
6 comments
7,177 views