For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > January 2008 > RE: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-WIN] Microsoft IIS - Fatal error: Call to undefined
McCallister, Jason

2008-01-03, 7:03 pm

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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com