FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP and DB2 on an IIS Server
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP and DB2 on an IIS Server [message #172750 is a reply to message #172725] Sun, 27 February 2011 21:55 Go to previous message
Peter H. Coffin is currently offline  Peter H. Coffin
Messages: 245
Registered: September 2010
Karma:
Senior Member
On 27 Feb 2011 16:45:59 GMT, Charles Buege wrote:

> Hello all out there.
>
> I'm attempting to get an IIS Server running with PHP (which I can do
> in my sleep by this point) but I'd like to enable the PHP server to do
> DB2 lookups on our iSeries AS/400 (V5R4M0 in case that matters). I've
> gone done the following:
>
> Setup the IIS Server. Configured and tested PHP extensively. I can
> make connections to MySQL and SQL Server devices with no problem at
> all. Downloaded and copied into the PHP\ext directory php_ibm_db2.dll
> file. I've modified the php.ini to include extension=php_ibm_db2.dll
> I've restarted the web server. But each time I try to use the
> following code, I get the following error: Fatal error: Call to
> undefined function db2_connect() in C:\phptest\baredata.php on line 17

It's not loading the DB2 stuff. Check the output of phpinfo(), but I'm
betting it's not there.

Additionally, it's been a while since I played with it, but from what
I remember, iSeries DB2 isn't quite the same enough as DB2 for other
systems to work well with PHP, and you may need the rebuild one from
zend and IBM. (I have a vague impression that the issues is that the
iSeries DB2 doesn't speak DB2 wire protocol to the outside world, only
DRDA (which is kind of like "big boy ODBC" for clusters), and the DB2
extensions are wire protocol, but any of these details may be wrong.)

--
Better to teach a man to fish than to give him a fish. And if he can't
be bothered to learn to fish and starves to death, that's a good enough
outcome for me.
-- Steve VanDevender
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: problem with web service
Next Topic: [ANN]VTD-XML 2.10
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 16:49:07 GMT 2024

Total time taken to generate the page: 0.03977 seconds