This topic is locked
[SOLVED]

 No connection to Oracle

7/9/2010 5:22:29 AM
PHPRunner General questions
B
barwedel author

I can not get a connection to an ORACLE-DB (Oracle 10g, Apache-Webserver, phprunner 5.1)

In the development time everything is correct
But the Internet-Explorer can not connect:

Fatal error: Call to undefined function ociplogon() in C:\xampp\htdocs\ORA_Test\include\dbconnection.php on line 6
and these are the lines 1 - 13 in dbconnection.php

<?php
function db_connect()

{

global $user,$pwd,$sid;

$conn=ociplogon($user,$pwd,$sid);

if(!$conn)

trigger_error(db_error(),E_USER_ERROR);

$stmt=ociparse($conn,"alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS'");

ociexecute($stmt);

ocifreestatement($stmt);

return $conn;

}

=================
Excuse my bad English

Can someone help me? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=14773&image=1&table=forumtopics' class='bbc_emoticon' alt=':(' />

Admin 7/9/2010

It looks like Oracle extension is not enabled in PHP settings (in php.ini).
Check this article for more info:

http://www.oracle.com/technology/pub/notes/technote_php_instant.html

It explains how to configure PHP and Oracle on both Windows and Linux.

B
barwedel author 7/9/2010



It looks like Oracle extension is not enabled in PHP settings (in php.ini).
Check this article for more info:

http://www.oracle.com/technology/pub/notes/technote_php_instant.html

It explains how to configure PHP and Oracle on both Windows and Linux.



[size="5"][/size]Thank You - it runs - <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=51090&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=51090&image=2&table=forumreplies' class='bbc_emoticon' alt=':)' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=51090&image=3&table=forumreplies' class='bbc_emoticon' alt=':)' />