PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Nov 25, 2014 7:11 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Fri Mar 28, 2008 2:31 pm 
Offline
Forum Newbie

Joined: Fri Mar 28, 2008 2:05 pm
Posts: 2
Hello,

My teammate and I are having a similar issue ...

Windows 2003
IIS 6.0
PHP 5.2.5 - mainly configured using these suggestions - http://www.peterguy.com/php/install_IIS6.html
Oracle 9.2

Warning: require(C:/php/ext/OCI.inc.) [function.require]: failed to open stream: No such file or directory in F:\forms\accountsearch\include\dbconn.php on line 14

Fatal error: require() [function.require]: Failed opening required 'C:/php/ext/OCI.inc.' (include_path='.;C:\php5\pear') in F:\forms\accountsearch\include\dbconn.php on line 14


(We are running the web files from the F:\ drive other than C:\ - and with the exception of Oracle, all apps are loaded on C:\)

* Sorry - had to edit the section, I had incorrect listed the oci .dll * We have ensured php_oci8.dll and php_oracle.dll are loaded into C:\PHP\ext and uncommented them from PHP.ini:

extension=C:\PHP\ext\php_oci8.dll
extension=C:\PHP\ext\php_oracle.dll

Similar to the previous poster, we are unable to locate oraiisp8.dll on our server.

Some Questions 1) Are there known bugs w/ the above product mix? 2) What is normally in the ora.oci file???

Any assistance would be greatly appreciated.

~ D.M.O.


Last edited by dmobrien14 on Mon Mar 31, 2008 8:58 am, edited 2 times in total.

Top
 Profile  
 
PostPosted: Sat Mar 29, 2008 11:46 pm 
Offline
Forum Contributor

Joined: Wed Sep 12, 2007 3:16 am
Posts: 111
is php_oci8.dll also loaded. If you are using oci_connect function then you need php_oci8.dll to be loaded


Top
 Profile  
 
PostPosted: Mon Mar 31, 2008 8:56 am 
Offline
Forum Newbie

Joined: Fri Mar 28, 2008 2:05 pm
Posts: 2
yes, php_oci8.dll is loaded in /ext folder and uncommented in php.ini

devendra-m wrote:
is php_oci8.dll also loaded. If you are using oci_connect function then you need php_oci8.dll to be loaded


Top
 Profile  
 
PostPosted: Sat Apr 19, 2008 6:09 am 
Offline
Forum Newbie

Joined: Sat Apr 19, 2008 4:45 am
Posts: 2
Hi Friends,

I am getting the same error "Fatal error: Call to undefined function oci_connect() ".
I have done everything, still oci dll is not enabled on phpinfo() page. And morever i am not getting any error on phpinfo pag, though i have set error_messages on. Really frustrated, can anyone help me out.

Apache 2.0.59 was previously installed by another user.
I installed PHP 5.2.5 on windows xp. The phpinfo() page works fine. Except for OCI and LDAP details not displayed. Whereas if i run php -i in command line i can see they are enabled.

I have moved the php.ini to windows directory and copied php5ts.dll to windows directory

I made following changes in php.ini.
[PHP_LDAP]
extension=php_ldap.dll
[PHP_OCI8]
extension=php_oci8.dll
[PHP_ORACLE]
;extension=php_oracle.dll

doc_root = C:\Program Files\Apache Group\Apache2\htdocs
extension_dir ="C:\Program Files\PHP\ext\"

And following changes in httpd.conf
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2.dll"
AddType application/x-httpd-php .php .html .htm .phtml
AddType application/x-httpd-php-source .phps

I have installed instant client 10g and set its path in the environment variable.
I also set the NLS_Lang to AMERICAN_AMERICA.WE8ISO8859P1
and TNS_ADMIN and LD_LIBRARY_PATH to instantclient path


Top
 Profile  
 
PostPosted: Fri Nov 18, 2011 6:19 am 
Offline
Forum Newbie

Joined: Fri Nov 18, 2011 5:51 am
Posts: 1
Dear All,

PHP Fatal error: Call to undefined function OCILogon() really smurf me off too.
but at last i found the solution.
point to check.

1- your php running prefect.you can check by pasting a code in file and check in browser ie. <?php phpinfo; ?>
2-in php.ini extensions path is correct. ie my path is C:\Inetpub\php\ext
; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:\Inetpub\php\ext"
3-in php.ini check in extensions oracle extensions are enabled. there should not b ; sign on the start. ie
extension=php_oci8.dll
4-i-download oracle instant client from http://www.oracle.com/technetwork/topic ... 85727.html
download
Version 11.2.0.2.0
Instant Client Package - Basic: All files required to run OCI, OCCI, and JDBC-OCI applications
Download instantclient-basic-nt-11.2.0.2.0.zip (50,325,016 bytes)
or any latest available.
unzip it and place the folder(name may be instantclient_11_2) where suits u on drive.

4-ii- Go to environment variables and add instantclient_11_2 path. ie
my computer>properties>advance>Environment variables-click
click in system variables Path then click edit.
add ur instantclient_11_2 path to the start of already given paths. like my installation C:\inetpub\instantclient_11_2;

restart iis or restart ur pc.

Congrats.
Now u will not c the PHP Fatal error: Call to undefined function OCILogon() :) cheers

Note: if u get warning abt allow_call_time_pass_reference .. then go to php.ini and check if allow_call_time_pass_reference = off then replace Off wid On
restart iis. and here u are done

Best Regards,
Mohsin Javeed.
Webmaster(http://www.bnu.edu.pk)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group