PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old January 4th, 2005, 11:34 PM
madie madie is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: K. Trg, Malaysia
Posts: 55 madie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via Yahoo to madie
OCI uses

Hi...

i'm facing problem in how to configure OCI with my php box..

the situation is like this:

i have an Oracle9i Database on Sun Solaris.

and i have php in linux on different machine.

Question:
if i want to connet to my oracle database which is installed on sun solaris, is it possible to do this?

prompt reply is appreciated..

tq

Reply With Quote
  #2  
Old January 5th, 2005, 01:49 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: OCI uses

Using OCILogon():
php Code:
Original - php Code
  1.  
  2. $db = "(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ip.address.of.db)(PORT = db.port)) ) (CONNECT_DATA = (SID = YOUR_DB_SID) ) )";
  3. $con = OCILogon("user", "password",$db);


Basically, you just have to build out a connection hash. This information is located in your tnsnames.ora file on the db server

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > OCI uses


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway