Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

php_oracle.dll vs php_oci8.dll

General discussions related to php

Moderators: macek, egami, gesf

php_oracle.dll vs php_oci8.dll

Postby nivaldin » Wed Mar 20, 2013 12:04 pm

hi folks,

I'm trying to migrate from php 5.0 to the last version (php 5.4);
The problem is: I'm trying to make the new php to work with the php_oracle.dll but without sucess.

Anyone has a idea, or knows if I can do it or not? because all my files are using the php_oracle.dll;

Thanks.
nivaldin
New php-forum User
New php-forum User
 
Posts: 4
Joined: Wed Mar 20, 2013 11:53 am

Re: php_oracle.dll vs php_oci8.dll

Postby seandisanti » Wed Mar 20, 2013 12:45 pm

what kind of errors are you getting? a LOT changed between 5.0 and 5.4 Your best bet if there is not an updated dll would be to get the best documentation you can on the functions in your dll, and create an adapter class based on the errors you're getting. Googling "PHP Adapter design pattern" should get you a couple of quality hits to walk you through getting started. Typically I'm not a fan of adapters as people use them to enable bad maintenance practices, but in a situation where you need the functionality and an updated dll is not available you may not have much choice.
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm

Re: php_oracle.dll vs php_oci8.dll

Postby nivaldin » Wed Mar 20, 2013 12:57 pm

Thanks seandisanti, the error is at the first attempt to use some function from php_oracle.dll.

Fatal error: Call to undefined function ora_logon() in C:\xampp\htdocs\relmetas\logar.php on line 5

I moved the php_oracle.dll to php/ext folder, and then I edited the php.ini and I inserted the line: extension=php_oracle.dll

but it's not worked!
nivaldin
New php-forum User
New php-forum User
 
Posts: 4
Joined: Wed Mar 20, 2013 11:53 am

Re: php_oracle.dll vs php_oci8.dll

Postby seandisanti » Wed Mar 20, 2013 1:14 pm

yeah, undefined function, assuming that the function is defined in the dll file, means that the contents of the .dll are not being used. I'd make sure to verify your include paths, and maybe even try to explicitly include or require it
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm

Re: php_oracle.dll vs php_oci8.dll

Postby nivaldin » Thu Mar 21, 2013 3:33 am

seandisanti wrote:yeah, undefined function, assuming that the function is defined in the dll file, means that the contents of the .dll are not being used. I'd make sure to verify your include paths, and maybe even try to explicitly include or require it


How can I include a especific .dll file, and use your functions?
I tryied this: include ('php_oracle.dll'), but it didnt work!
nivaldin
New php-forum User
New php-forum User
 
Posts: 4
Joined: Wed Mar 20, 2013 11:53 am

Re: php_oracle.dll vs php_oci8.dll

Postby nivaldin » Thu Mar 21, 2013 4:04 am

nivaldin
New php-forum User
New php-forum User
 
Posts: 4
Joined: Wed Mar 20, 2013 11:53 am

Re: php_oracle.dll vs php_oci8.dll

Postby seandisanti » Thu Mar 21, 2013 11:31 am

seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron