Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-03-2003, 07:09 PM   PM User | #1
Bengal313
Regular Coder

 
Bengal313's Avatar
 
Join Date: Jun 2002
Location: Metro Detroit
Posts: 298
Thanks: 8
Thanked 0 Times in 0 Posts
Bengal313 is an unknown quantity at this point
Connecting to oracle 9i using php

I am using php 4.3.2, apache 2, oracle 9i, and everything is running on linux Suse. I created a connection to oracle using php and the connection wizard in dreamweaver mx. I got the connection to work using php-adodb server model. But I am getting a weird problem. After I get the connection to create successfully, and create a recordset, after a few minutes the connection fails. It seems that apache hangs up the connection or something. I have to go into apache 2.0 and restart it. Them it comes back again. And the same thing happens again. Any thoughts.
__________________
"Knowledge Speaks But Wisdom Listens"

Last edited by Bengal313; 11-03-2003 at 07:18 PM..
Bengal313 is offline   Reply With Quote
Old 11-05-2007, 06:08 AM   PM User | #2
PASHA_SANYAL
New Coder

 
Join Date: Feb 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
PASHA_SANYAL is an unknown quantity at this point
Hi Bengal313,
How r u connecting to the oracle through php and adodb. I am myself connecting to remote oracle with the following code. Can you tell me what's going wrong. I am not being able to connect to the oracle.

Code:
$DSN="oci8://".USERNAME.":".PASSWORD."@".HOST."/".SID;
$DB=NewADOConnection($DSN);
$DB->debug = 1;
Then I am using this code:
Code:
$res	=	$DB->Execute($sql) or die($DB->ErrorMsg());
It is showing error:
Fatal error: Call to undefined method stdClass::Execute()

I would be greatly obliged if you can share me some light on this...

Thanks in advance,
__________________
Always blame on me..
PASHA_SANYAL is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:17 PM.


Advertisement
Log in to turn off these ads.