You might consider using ODBC to connect. I've had better luck with that on windows using apache, no IIS experience. Warren Vail > -----Original Message----- > From: McCallister, Jason [mailto:Jason.McCallister@xxxxxxxxxx] > Sent: Thursday, January 03, 2008 8:55 AM > To: php-windows@xxxxxxxxxxxxx > Subject: Microsoft IIS - Fatal error: Call to undefined function > db2_connect() > > > *** 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 > > > > > > > > *** I also get this windows error on the IIS server > > > > CLI encountered a problem and needed to close. > > > > > > > > *** I am using Internet explorer on the client and IIS on the server. > > > > > > > > *** If I run "php -m" from the server's command line, I see ibm_db2 in > > the listing. So DB2 appears to be loading. > > > > > > > > *** If I try to run the php script from the command line on the > > server, I get no output: > > > > F:\INETPUB\WWWROOT>php -f jason2.php > > > > F:\INETPUB\WWWROOT> > > > 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 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php