RE: Microsoft IIS - Fatal error: Call to undefined function db2_connect()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK. There were actually two problems.

1) The correct PHP.INI file was not being read. Lester and Tom's
suggestion to put a copy of php.ini under c:\winnt worked. Also, John's
recommendation of setting PHPRC to f:\php\ worked as well. This is what
I'll do so that I don't mess with the Windows system files.

2) The php.ini file that I was using had too many settings. I think I
used the default template. So I reduced it down to only what I needed.

[PHP]

extension_dir="F:\PHP\ext"

[PHP_IBM_DB2]
extension=php_ibm_db2.dll


I am getting new connection errors now. I'll start a new thread if I
can't resolve them.


P.S. I am documenting all the solutions so everyone knows the
resolution. On some tech sites I notice that the final threads are often
'thanks - It works now' and you never know what fixed it.

Thanks for your help.



-----Original Message-----
From: Lester Caine [mailto:lester@xxxxxxxxxxx] 
Sent: Thursday, January 03, 2008 3:46 PM
To: php-windows@xxxxxxxxxxxxx
Subject: Re:  Microsoft IIS - Fatal error: Call to undefined
function db2_connect()

McCallister, Jason wrote:
> *** I think PHP may be using the wrong PHP.INI file.
>  
> phpinfo() says this:
>  
> Configuration File (php.ini) Path  C:\WINNT Loaded Configuration File

> (none)
>  
> *** However, when I run php -i, it says this:
>  
> Configuration File (php.ini) Path => C:\WINNT Loaded Configuration 
> File => F:\PHP\php.ini
>  
> *** How do I change the pointer to use the correct PHP.INI file? It 
> must be something in IIS, since the command line can see it?

phpinfo is your friend - at least when trying to sort things out.
I just drop my php.ini into the C:\WINNT directory - just never got
round to looking for any other way of doing it :)

--
Lester Caine - G8HFL
-----------------------------
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW -
http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
Firebird - http://www.firebirdsql.org/index.php

--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php





Blue Cross Blue Shield of Florida, Inc., and its subsidiary and affiliate companies are not responsible for errors or omissions in this e-mail message. Any personal comments made in this e-mail do not reflect the views of Blue Cross Blue Shield of Florida, Inc.  The information contained in this document may be confidential and intended solely for the use of the individual or entity to whom it is addressed.  This document may contain material that is privileged or protected from disclosure under applicable law.  If you are not the intended recipient or the individual responsible for delivering to the intended recipient, please (1) be advised that any use, dissemination, forwarding, or copying of this document IS STRICTLY PROHIBITED; and (2) notify sender immediately by telephone and destroy the document. THANK YOU.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux