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 #172730 is a reply to message #172725] Sun, 27 February 2011 18:39 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 2/27/2011 11:45 AM, 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
>
> <?php
> //Establish connection to database
> $host = "mysystem.mydomain.com";
> $conn = db2_connect($host,"(valid user name)", "(valid password)");
>
> Any additional information that you request, I'll be happy to provide it.
>
> Would anyone out there have any idea where I could go for my next attempt to get this working? Please feel free to email me at cbuege at moreycorp dot com with any suggestions you
> have. I'm ready to pull my hair out over this!! *laughs* I'm SURE, at this point, that I'm missing something as simple as uncommenting a line of code or some other stupid thing like
> that, so any help would be greatly appreciated.
>
> Thank you,
> Charles
>
>

Did you install and load the php db2 extension? Is the DB2 client
installed on this machine (and the client libraries available to the web
server)?

Finally, after checking the above, what does phpinfo() show?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Sun Nov 24 20:00:38 GMT 2024

Total time taken to generate the page: 0.03876 seconds