Page 1 of 1

connection problem

Posted: Sat Jul 07, 2007 5:22 am
by paudelvikash
hi all
i tried connecting php5 with oracle 10g but faced with many problems
i used .zip for php5 and used installer for apache
configuration for php was successful
php_oci8.dll was also uncommented
but it throws the following error
undefined function oci_connect() at line......

i am using oci_connect() and ocilogon
does both of them is supported by 10g

please someone help me

i am waiting for the configuration step

Posted: Sat Jul 07, 2007 6:22 am
by volka
please try

Code: Select all

<?php
$ini = get_cfg_var('cfg_file_path');
echo 'version: ', phpversion(), "<br />\n";
echo 'sapi: ', php_sapi_name(), "<br />\n";
echo 'php.ini: ', $ini, "<br />\n";

echo "<pre>\n--\n";
foreach(file($ini) as $l) {
  if ( false!==strpos($l, 'oci') ) {
    echo $l;
  }
}
echo "--\n</pre>\n";
and post the output.