Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle php winxp

Status
Not open for further replies.

mikeyd

Technical User
Jan 28, 2002
38
US
This is my first attempt at using php and apache on win xp machine.

I am connecting to an Oracle 9i database on the network.
If I try to connect with wrong id, password, or db it gives me an error as it is suppose to. If I connect with the right id, passwd, db it continues to next statement.
So I am confidant I am connecting.

When my php script comes to the ociparse statement it crashes. If I run it from a web-browser it causes an error message on apache server but no helpful info is provided or clear error message.

I am running the latest php 5 version
Apache 2
on winxp sp2 machine.

here is my script up to the part where it crashes.

<?php

$connection = ocilogon("myid","mypwd","mydb") or die("Say that dang Database ain't talking to me");
echo "connected";
$sql = "SELECT SUPID FROM SUPPLRS";

$sql_statement = OCIParse($connection, $sql) or die ("This thing dont understand my query");

If I run it with php instead of running from apache it crashes and trys to send the debug report to MicroSoft.

Can someone please help this newbie out?
Thanks
Mike
 
Could this be an eviroment issue with php?
 
Just in case any of you were in suspense. I found the solution. I downgraded from php5 to php4 and now my codes work flawlessly.

Just thought you should know.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top