Connecting to Oracle 8i

admin

Administrator
Staff member
Hi,

I'm running Personal edition of Oracle 8.1.6 and Apache 1.3.x on Windows 2000. I've successfully installed PHP4 (I think) and can run basic PHP pages through my browser without any problems.

When I use the following code (taken from a website to test that the PHP to Oracle connection is successful):

<? $db="testdb" //My database is testdb

if ($conn=ocilogon("username","password",$db)){
echo "<b>SUCCESS e.t.c.<b>\n";
} else {
echo "<b>FAILED e.t.c.<b>\n";
}
phpinfo();
?>

The following happens, firstly the SUCCESS message is displayed and then the phpinfo is listed. Then the browser is still working and a pop up window opens saying:

Program Error - php.exe has generated errors and will be closed by windows. You will need to restart the program. An error log is being created.

The error log is a standard windows file which basically contains alot of internal address information and no help whatsoever.

If anyone has ANY ideas I'd be really greatful.

Thanks

Sally
 
Back
Top