Home » Open Source » Programming Interfaces » Connect Oracle with PHP in 64 bit machine (Windows server 2008)
Connect Oracle with PHP in 64 bit machine [message #519718] Tue, 16 August 2011 08:21 Go to next message
raji123
Messages: 4
Registered: August 2011
Junior Member
Hi,
I am using windows server 2008 - 64 bit OS.
PHP with Oracle script works fine in 32bit machine.
If I use same script in 64 bit machine I got the ERROR:
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_oci8.dll' - %1 is not a valid Win32 application
Any help or guidance would be greatly appreciated

Regards,
Raji.
Re: Connect Oracle with PHP in 64 bit machine [message #519721 is a reply to message #519718] Tue, 16 August 2011 08:28 Go to previous messageGo to next message
Michel Cadot
Messages: 68624
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Did you install the 32-bit client?
Do you point to this Oracle home?

Regards
Michel
Re: Connect Oracle with PHP in 64 bit machine [message #519820 is a reply to message #519721] Wed, 17 August 2011 03:06 Go to previous messageGo to next message
raji123
Messages: 4
Registered: August 2011
Junior Member
Yes, I have installed 32 bit client. Added 'C:\oracle\product\10.2.0\client_1' to Path variable.
Re: Connect Oracle with PHP in 64 bit machine [message #519821 is a reply to message #519820] Wed, 17 August 2011 03:14 Go to previous messageGo to next message
Michel Cadot
Messages: 68624
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Post phpinfo page.
Create the php page with the following content and call it, then post the result:
<?php

phpinfo();

?>


Regards
Michel
Re: Connect Oracle with PHP in 64 bit machine [message #519829 is a reply to message #519821] Wed, 17 August 2011 03:42 Go to previous messageGo to next message
raji123
Messages: 4
Registered: August 2011
Junior Member
Yes. displayed phpinfo.
Here what info I have to check.
Re: Connect Oracle with PHP in 64 bit machine [message #519835 is a reply to message #519829] Wed, 17 August 2011 03:52 Go to previous messageGo to next message
raji123
Messages: 4
Registered: August 2011
Junior Member
I have copied oci.dll from 'C:\oracle\product\10.2.0\client_1' to 'C:\php\ext'. but if I remove semicolon for this line in php.ini 'extension=oci.dll'. I got error like '<OS 10048> Only one usage of each socket address <protocol/network address/port> is normally permitted. : make_sock: could not bind to address 0.0.0.0:80 no listening socket available, shutting down
Unable to open log'. If i put semi colon to this 'extension=oci.dll' it works fine.
Re: Connect Oracle with PHP in 64 bit machine [message #531351 is a reply to message #519835] Tue, 15 November 2011 08:24 Go to previous message
Flyby
Messages: 188
Registered: March 2011
Location: Belgium
Senior Member
is your webserver(IIS/apache/...)? running in 32 or 64-bit mode?
if 64-bit: try the oracle 64-bit Oracle client
Previous Topic: Best language(s) to use for an online address book.
Next Topic: Can i execute PLSQL Block in an Servlet Code.
Goto Forum:
  


Current Time: Thu Mar 28 05:21:53 CDT 2024