RE: Microsoft IIS - Fatal error: Call to undefined function db2_connect()
RE: Microsoft IIS - Fatal error: Call to undefined function db2_connect()
am 03.01.2008 21:25:08 von Tom Hearn
------=_NextPart_000_0004_01C84E1C.D338E070
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Jason,
If you do not see it in phpinfo then it is not loaded.
Are you positive that your php extension directory is properly set in
php.ini?
A good way to check this is when you actually call phpinfo() there will be
an entry telling you the path of php.ini it is actually using. Verify that
the file you are editing with extension= is actually in the path that
phpinfo is showing.
Are you sure that php_ibm_db2.dll is the proper filename (extensions
are generally php_nomoreunderlinesinfilename.dll), but I'm not sure about
DB2?
It seems to me that you may be having something like:
[PHP_IBM_DB2]
extension=filename.dll
You should add extension=php_ibm_db2.dll (granted that is the correct
filename) directly below the rest of the ini file's extensions. There is a
specific section towards the middle of your php.ini file that there is a
whole list of other extensions to be loaded. Add it to the last line under
these entries if it is not already.
Tom Hearn
Software Engineer
/n Software
We are releasing IPWorks! for PHP Soon! Ask me for more information!
----- Original Message -----
>*** I don't see it with phpinfo()
>
>
>*** I have this in PHP.INI ([PHP_IBM_DB2] extension=php_ibm_db2.dll).
>
>
>*** What else is need to load the DB2 extension? I have also rebooted.
>
>
>
>*** These are the only entries that I see in PHP.INI with the word DB2.
>
>
>CLASSPATH
>.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\S QLLIB\java\db
>2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar; C:\PROGRA~1\I
>BM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar
>
>DB2INSTANCE DB2
>
>DB2TEMPDIR C:\PROGRA~1\IBM\SQLLIB\
>
>_ENV["CLASSPATH"]
>.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\S QLLIB\java\db
>2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar; C:\PROGRA~1\I
>BM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar
>
>_ENV["DB2INSTANCE"] DB2
>
>_ENV["DB2TEMPDIR"] C:\PROGRA~1\IBM\SQLLIB\
>
>
>
>-----Original Message-----
>From: Lester Caine [mailto:lester@lsces.co.uk]
>Sent: Thursday, January 03, 2008 12:47 PM
>To: php-windows@lists.php.net
>Subject: Re: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined
>function db2_connect()
>
>McCallister, Jason wrote:
>> I have this line in my php.ini file.
>>
>> [PHP_IBM_DB2]
>> extension=php_ibm_db2.dll
>>
>> Also, if I run php -m, I can see ibm_db2
>>
>>
>>
>> -----Original Message-----
>> From: Lester Caine [mailto:lester@lsces.co.uk]
>> Sent: Thursday, January 03, 2008 12:22 PM
>> To: php-windows@lists.php.net
>> Subject: Re: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined
>> function db2_connect()
>>
>> McCallister, Jason wrote:
>>>> *** When I run a PHP script that uses db2_connect, I get this error
>>>> message:
>>>>
>>>> Fatal error: Call to undefined function db2_connect() in
>>>> F:\Inetpub\wwwroot\jason2.php on line 5
>>
>> You need to load the ibm_db2 package.
>> Check out phpinfo() if you think that it should be loaded.
>
>I'd still be looking for the results from phpinfo() to show that the
>module is actually running and what settings it has defaulted to. I
>believe that 'php -m' only shows that a module is included, that that it
>actually started?
>
>--
>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
>
>
------=_NextPart_000_0004_01C84E1C.D338E070--
RE: Microsoft IIS - Fatal error: Call to undefinedfunction db2_connect()
am 03.01.2008 21:35:47 von Jason.McCallister
------_=_NextPart_001_01C84E48.38830F78
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable
*** I think PHP may be using the wrong PHP.INI file.
=20
phpinfo() says this:
=20
Configuration File (php.ini) Path C:\WINNT
Loaded Configuration File (none)=20
=20
=20
*** However, when I run php -i, it says this:
=20
Configuration File (php.ini) Path =3D> C:\WINNT
Loaded Configuration File =3D> F:\PHP\php.ini
=20
=20
*** How do I change the pointer to use the correct PHP.INI file=3F It must
be something in IIS, since the command line can see it=3F
=20
=20
________________________________
=46rom: Tom Hearn [mailto:tomh@nsoftware.com]=20
Sent: Thursday, January 03, 2008 3:25 PM
To: McCallister, Jason
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined
=66unction db2_connect()
Jason,
If you do not see it in phpinfo then it is not loaded.
=20
Are you positive that your php extension directory is properly set
in php.ini=3F
A good way to check this is when you actually call phpinfo() there will
be an entry telling you the path of php.ini it is actually using.
Verify that the file you are editing with extension=3D is actually in the
path that phpinfo is showing.
=20
Are you sure that php_ibm_db2.dll is the proper filename
(extensions are generally php_nomoreunderlinesinfilename.dll), but I'm
not sure about DB2=3F
=20
It seems to me that you may be having something like:
=20
[PHP_IBM_DB2]
extension=3Dfilename.dll
=20
You should add extension=3Dphp_ibm_db2.dll (granted that is the
correct filename) directly below the rest of the ini file's extensions.
There is a specific section towards the middle of your php.ini file that
there is a whole list of other extensions to be loaded. Add it to the
last line under these entries if it is not already.
=20
=20
Tom Hearn
Software Engineer
/n Software
=20
We are releasing IPWorks! for PHP Soon! Ask me for more information!
=20
----- Original Message -----
>*** I don't see it with phpinfo()=20
>=20
>=20
>*** I have this in PHP.INI ([PHP_IBM_DB2] extension=3Dphp_ibm_db2.dll).=20
>=20
>=20
>*** What else is need to load the DB2 extension=3F I have also rebooted.=20
>=20
>=20
>=20
>*** These are the only entries that I see in PHP.INI with the word DB2.
>=20
>=20
>CLASSPATH=20
>.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\S QLLIB\java\d
b=20
>2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar; C:\PROGRA~1\
I=20
>BM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar=20
>=20
>DB2INSTANCE DB2=20
>=20
>DB2TEMPDIR C:\PROGRA~1\IBM\SQLLIB\=20
>=20
>_ENV["CLASSPATH"]=20
>.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\S QLLIB\java\d
b=20
>2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar; C:\PROGRA~1\
I=20
>BM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar=20
>=20
>_ENV["DB2INSTANCE"] DB2=20
>=20
>_ENV["DB2TEMPDIR"] C:\PROGRA~1\IBM\SQLLIB\=20
>=20
>=20
>=20
>-----Original Message-----=20
>From: Lester Caine [mailto:lester@lsces.co.uk]=20
>Sent: Thursday, January 03, 2008 12:47 PM=20
>To: php-windows@lists.php.net=20
>Subject: Re: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined=20
>function db2_connect()=20
>=20
>McCallister, Jason wrote:=20
>> I have this line in my php.ini file.=20
>>=20
>> [PHP_IBM_DB2]=20
>> extension=3Dphp_ibm_db2.dll=20
>>=20
>> Also, if I run php -m, I can see ibm_db2=20
>>=20
>>=20
>>=20
>> -----Original Message-----=20
>> From: Lester Caine [mailto:lester@lsces.co.uk]=20
>> Sent: Thursday, January 03, 2008 12:22 PM=20
>> To: php-windows@lists.php.net=20
>> Subject: Re: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined
>> function db2_connect()=20
>>=20
>> McCallister, Jason wrote:=20
>>>> *** When I run a PHP script that uses db2_connect, I get this error
>>>> message:=20
>>>>=20
>>>> Fatal error: Call to undefined function db2_connect() in=20
>>>> F:\Inetpub\wwwroot\jason2.php on line 5=20
>>=20
>> You need to load the ibm_db2 package.=20
>> Check out phpinfo() if you think that it should be loaded.=20
>=20
>I'd still be looking for the results from phpinfo() to show that the=20
>module is actually running and what settings it has defaulted to. I=20
>believe that 'php -m' only shows that a module is included, that that
it=20
>actually started?
>=20
>--=20
>Lester Caine - G8HFL=20
>-----------------------------=20
>Contact - http://home.lsces.co.uk/lsces/wiki/=3Fpage=3Dcontact=20
>L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW -=20
>http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/=20
>Firebird - http://www.firebirdsql.org/index.php=20
>=20
>--=20
>PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:=20
>http://www.php.net/unsub.php=20
>=20
>=20
>=20
>=20
>=20
>=20
>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.=20
>=20
>--=20
>PHP Windows Mailing List (http://www.php.net/)=20
>To unsubscribe, visit: http://www.php.net/unsub.php=20
>=20
>
=20
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 =
=66or 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.
------_=_NextPart_001_01C84E48.38830F78--
Re: Microsoft IIS - Fatal error: Call to undefined functiondb2_connect()
am 03.01.2008 21:46:21 von Lester Caine
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
Re: Microsoft IIS - Fatal error: Call to undefined function db2_connect()
am 03.01.2008 21:48:18 von John Mertic
Hi Jason,
I'm betting you used the PHP Windows Installer. Add the following
environment variable:
PHPRC
and set the value to the path to your PHP installation ( in your case
it appears to be F:\PHP\ ).
We used to set it as a part of the installer, but then stopped doing
that for 5.2.5. We'll be re-enabling from now on.
John
On Jan 3, 2008 3:35 PM, 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?
>
>
>
>
>
>
> ________________________________
>
> From: Tom Hearn [mailto:tomh@nsoftware.com]
> Sent: Thursday, January 03, 2008 3:25 PM
> To: McCallister, Jason
> Cc: php-windows@lists.php.net
> Subject: RE: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined
> function db2_connect()
>
>
>
>
> Jason,
>
> If you do not see it in phpinfo then it is not loaded.
>
>
>
> Are you positive that your php extension directory is properly set
> in php.ini?
>
> A good way to check this is when you actually call phpinfo() there will
> be an entry telling you the path of php.ini it is actually using.
> Verify that the file you are editing with extension= is actually in the
> path that phpinfo is showing.
>
>
>
> Are you sure that php_ibm_db2.dll is the proper filename
> (extensions are generally php_nomoreunderlinesinfilename.dll), but I'm
> not sure about DB2?
>
>
>
> It seems to me that you may be having something like:
>
>
>
> [PHP_IBM_DB2]
>
> extension=filename.dll
>
>
>
> You should add extension=php_ibm_db2.dll (granted that is the
> correct filename) directly below the rest of the ini file's extensions.
> There is a specific section towards the middle of your php.ini file that
> there is a whole list of other extensions to be loaded. Add it to the
> last line under these entries if it is not already.
>
>
>
>
>
> Tom Hearn
>
> Software Engineer
>
> /n Software
>
>
>
> We are releasing IPWorks! for PHP Soon! Ask me for more information!
>
>
>
> ----- Original Message -----
>
> >*** I don't see it with phpinfo()
> >
> >
> >*** I have this in PHP.INI ([PHP_IBM_DB2] extension=php_ibm_db2.dll).
> >
> >
> >*** What else is need to load the DB2 extension? I have also rebooted.
> >
> >
> >
> >*** These are the only entries that I see in PHP.INI with the word DB2.
>
> >
> >
> >CLASSPATH
> >.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\S QLLIB\java\d
> b
> >2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar; C:\PROGRA~1\
> I
> >BM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar
> >
> >DB2INSTANCE DB2
> >
> >DB2TEMPDIR C:\PROGRA~1\IBM\SQLLIB\
> >
> >_ENV["CLASSPATH"]
> >.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\S QLLIB\java\d
> b
> >2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar; C:\PROGRA~1\
> I
> >BM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar
> >
> >_ENV["DB2INSTANCE"] DB2
> >
> >_ENV["DB2TEMPDIR"] C:\PROGRA~1\IBM\SQLLIB\
> >
> >
> >
> >-----Original Message-----
> >From: Lester Caine [mailto:lester@lsces.co.uk]
> >Sent: Thursday, January 03, 2008 12:47 PM
> >To: php-windows@lists.php.net
> >Subject: Re: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined
> >function db2_connect()
> >
> >McCallister, Jason wrote:
> >> I have this line in my php.ini file.
> >>
> >> [PHP_IBM_DB2]
> >> extension=php_ibm_db2.dll
> >>
> >> Also, if I run php -m, I can see ibm_db2
> >>
> >>
> >>
> >> -----Original Message-----
> >> From: Lester Caine [mailto:lester@lsces.co.uk]
> >> Sent: Thursday, January 03, 2008 12:22 PM
> >> To: php-windows@lists.php.net
> >> Subject: Re: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined
>
> >> function db2_connect()
> >>
> >> McCallister, Jason wrote:
> >>>> *** When I run a PHP script that uses db2_connect, I get this error
>
> >>>> message:
> >>>>
> >>>> Fatal error: Call to undefined function db2_connect() in
> >>>> F:\Inetpub\wwwroot\jason2.php on line 5
> >>
> >> You need to load the ibm_db2 package.
> >> Check out phpinfo() if you think that it should be loaded.
> >
> >I'd still be looking for the results from phpinfo() to show that the
> >module is actually running and what settings it has defaulted to. I
> >believe that 'php -m' only shows that a module is included, that that
> it
> >actually started?
> >
> >--
> >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
> >
> >
>
>
>
>
> 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 dest
roy the document. THANK YOU.
>
--
John Mertic
jmertic@gmail.com
http://jmertic.wordpress.com
"Explaining a joke is like dissecting a frog: you understand it
better, but the frog dies
in the process." --Mark Twain
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Microsoft IIS - Fatal error: Call to undefinedfunction db2_connect()
am 03.01.2008 22:22:33 von Jason.McCallister
I tried both methods: A) moving the PHP.INI file to c:\winnt; and B)
Setting the PHPRC variable to f:\php\
Both methods now result in a blank phpinfo() page.
The PHP.INI file seems to work ok using the command line: php -I
But now it is blank on the web page=3F
=20
-----Original Message-----
=46rom: John Mertic [mailto:jmertic@gmail.com]=20
Sent: Thursday, January 03, 2008 3:48 PM
To: McCallister, Jason
Cc: tomh@nsoftware.com; php-windows@lists.php.net
Subject: Re: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined
=66unction db2_connect()
Hi Jason,
I'm betting you used the PHP Windows Installer. Add the following
environment variable:
PHPRC
and set the value to the path to your PHP installation ( in your case it
appears to be F:\PHP\ ).
We used to set it as a part of the installer, but then stopped doing
that for 5.2.5. We'll be re-enabling from now on.
John
On Jan 3, 2008 3:35 PM, 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 =3D> C:\WINNT Loaded Configuration=20
> File =3D> F:\PHP\php.ini
>
>
> *** How do I change the pointer to use the correct PHP.INI file=3F It=20
> must be something in IIS, since the command line can see it=3F
>
>
>
>
>
>
> ________________________________
>
> From: Tom Hearn [mailto:tomh@nsoftware.com]
> Sent: Thursday, January 03, 2008 3:25 PM
> To: McCallister, Jason
> Cc: php-windows@lists.php.net
> Subject: RE: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined=20
> function db2_connect()
>
>
>
>
> Jason,
>
> If you do not see it in phpinfo then it is not loaded.
>
>
>
> Are you positive that your php extension directory is properly=20
> set in php.ini=3F
>
> A good way to check this is when you actually call phpinfo() there=20
> will be an entry telling you the path of php.ini it is actually using.
> Verify that the file you are editing with extension=3D is actually in=20
> the path that phpinfo is showing.
>
>
>
> Are you sure that php_ibm_db2.dll is the proper filename=20
> (extensions are generally php_nomoreunderlinesinfilename.dll), but I'm
> not sure about DB2=3F
>
>
>
> It seems to me that you may be having something like:
>
>
>
> [PHP_IBM_DB2]
>
> extension=3Dfilename.dll
>
>
>
> You should add extension=3Dphp_ibm_db2.dll (granted that is the=20
> correct filename) directly below the rest of the ini file's
extensions.
> There is a specific section towards the middle of your php.ini file=20
> that there is a whole list of other extensions to be loaded. Add it=20
> to the last line under these entries if it is not already.
>
>
>
>
>
> Tom Hearn
>
> Software Engineer
>
> /n Software
>
>
>
> We are releasing IPWorks! for PHP Soon! Ask me for more information!
>
>
>
> ----- Original Message -----
>
> >*** I don't see it with phpinfo()
> >
> >
> >*** I have this in PHP.INI ([PHP_IBM_DB2] extension=3Dphp_ibm_db2.dll).
> >
> >
> >*** What else is need to load the DB2 extension=3F I have also
rebooted.
> >
> >
> >
> >*** These are the only entries that I see in PHP.INI with the word
DB2.
>
> >
> >
> >CLASSPATH
> >.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\S QLLIB\java
> >\d
> b
> >2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar; C:\PROGRA~
> >1\
> I
> >BM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar
> >
> >DB2INSTANCE DB2
> >
> >DB2TEMPDIR C:\PROGRA~1\IBM\SQLLIB\
> >
> >_ENV["CLASSPATH"]
> >.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1\IBM\S QLLIB\java
> >\d
> b
> >2jcc.jar;C:\PROGRA~1\IBM\SQLLIB\java\db2jcc_license_cu.jar; C:\PROGRA~
> >1\
> I
> >BM\SQLLIB\bin;C:\PROGRA~1\IBM\SQLLIB\java\common.jar
> >
> >_ENV["DB2INSTANCE"] DB2
> >
> >_ENV["DB2TEMPDIR"] C:\PROGRA~1\IBM\SQLLIB\
> >
> >
> >
> >-----Original Message-----
> >From: Lester Caine [mailto:lester@lsces.co.uk]
> >Sent: Thursday, January 03, 2008 12:47 PM
> >To: php-windows@lists.php.net
> >Subject: Re: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined
> >function db2_connect()
> >
> >McCallister, Jason wrote:
> >> I have this line in my php.ini file.
> >>
> >> [PHP_IBM_DB2]
> >> extension=3Dphp_ibm_db2.dll
> >>
> >> Also, if I run php -m, I can see ibm_db2
> >>
> >>
> >>
> >> -----Original Message-----
> >> From: Lester Caine [mailto:lester@lsces.co.uk]
> >> Sent: Thursday, January 03, 2008 12:22 PM
> >> To: php-windows@lists.php.net
> >> Subject: Re: [PHP-WIN] Microsoft IIS - Fatal error: Call to=20
> >> undefined
>
> >> function db2_connect()
> >>
> >> McCallister, Jason wrote:
> >>>> *** When I run a PHP script that uses db2_connect, I get this=20
> >>>> error
>
> >>>> message:
> >>>>
> >>>> Fatal error: Call to undefined function db2_connect() in=20
> >>>> F:\Inetpub\wwwroot\jason2.php on line 5
> >>
> >> You need to load the ibm_db2 package.
> >> Check out phpinfo() if you think that it should be loaded.
> >
> >I'd still be looking for the results from phpinfo() to show that the=20
> >module is actually running and what settings it has defaulted to. I=20
> >believe that 'php -m' only shows that a module is included, that that
> it
> >actually started=3F
> >
> >--
> >Lester Caine - G8HFL
> >-----------------------------
> >Contact - http://home.lsces.co.uk/lsces/wiki/=3Fpage=3Dcontact
> >L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW -=20
> >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=20
> this e-mail message. Any personal comments made in this e-mail do not=20
> reflect the views of Blue Cross Blue Shield of Florida, Inc. The=20
> information contained in this document may be confidential and=20
> intended solely for the use of the individual or entity to whom it is=20
> addressed. This document may contain material that is privileged or=20
> protected from disclosure under applicable law. If you are not the=20
> 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=20
> (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
> >
> >
>
>
>
>
> 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.
>
--
John Mertic
jmertic@gmail.com
http://jmertic.wordpress.com
"Explaining a joke is like dissecting a frog: you understand it better,
but the frog dies in the process." --Mark Twain
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 =
=66or 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
RE: Microsoft IIS - Fatal error: Call to undefinedfunction db2_connect()
am 03.01.2008 23:15:00 von Jason.McCallister
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=3D"F:\PHP\ext"
[PHP_IBM_DB2]
extension=3Dphp_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-----
=46rom: Lester Caine [mailto:lester@lsces.co.uk]=20
Sent: Thursday, January 03, 2008 3:46 PM
To: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined
=66unction db2_connect()
McCallister, Jason wrote:
> *** I think PHP may be using the wrong PHP.INI file.
> =20
> phpinfo() says this:
> =20
> Configuration File (php.ini) Path C:\WINNT Loaded Configuration File
> (none)
> =20
> *** However, when I run php -i, it says this:
> =20
> Configuration File (php.ini) Path =3D> C:\WINNT Loaded Configuration=20
> File =3D> F:\PHP\php.ini
> =20
> *** How do I change the pointer to use the correct PHP.INI file=3F It=20
> must be something in IIS, since the command line can see it=3F
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/=3Fpage=3Dcontact
L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW -
http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/
=46irebird - 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 =
=66or 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