Cannot get the php_oci8.dll to load.
501158Mar 23 2006 — edited Apr 19 2006I'm very new to PHP, and I'm stuck on square one. I have Windows 2003 server, PHP 5, and IIS 6. There is an Oracle 9i client installed on this server, and the 9i database is on another server.
I'm trying to use the Oracle connection test PHP script that is on the FAQ page.
It keeps returning: Fatal error: Call to undefined function oci_connect() in d:\CAAAf\PHP\Oracle test.php on line 5. I've tried both the PHP4 OCI_LOGON and PHP 5 OCI_CONNECT, but PHP can't find the .dll to even start the login.
I edited the PHP.ini file to enable the php_oci8.dll extention, and the file is in the ext folder. Then I stopped and started the web service to reload the PHP, but it still can't find the .dll.
I tried the phpinfo() call to see if the server saw things the way I do. In the Configuration File (php.ini) Path property, it says C:\Windows instead of c:\PHP. I checked in C:\Windows folder, and there is no PHP.ini file there. So I'm not sure if this is an error or just confusion. And in the blocks below this, OCI8 is not mentioned with all the other extensions.
I even tried using a dl() command to explicitly load the PHP_OCI8.dll like this:
dl('c:\php\ext\php_oci8.dll') but it only gave me a parse error.
How did I get hung up on square one; this isn't that hard, is it?
Thanks for any help or advice.
Scott