PHP and DB2 - anyone done anything with PHP?

PHP and DB2 - anyone done anything with PHP?

Post by Mairhtin O'Feanna » Thu, 07 Nov 2002 12:38:05



Hi,

It seems like I am continually in the wilderness with some of my projects,
but was wondering if anyone had done any PHP and DB2 work?

I have a site that uses PHP to do their scripting, and now they need to add
some real function to the site, which will entail storing stuff in a
database that has transactional support.  Hence my suggestion for DB2 on
both the Win2K and Linux versions of their web servers.

I see from the sites I've visited and the books I've picked up that there
are functions for Oracle, Sybase, Informix and PostGress, but no mention of
DB2.  I was thinking that just regular ODBC would be a pain and so I
thought that mebbe some kind soul had been down this path and would be able
to show me how to do the simple SIUD stuff (Select Insert Update Delete).  
Again, a very simple example to start me off would be nice!  *making
praying hands gesture*

Thanks in advance for any help offered.

Mairhtin

irishboy at Imadethis dot com

 
 
 

PHP and DB2 - anyone done anything with PHP?

Post by Mairhtin O'Feanna » Thu, 07 Nov 2002 12:44:04


DOH!

I guess I answered my own request via the last search I did for Laurence:

http://www7b.boulder.ibm.com/dmdd/library/techarticle/scott/0614
_scott.html

BUT ...

If anyone *HAS* done some development and would not mind a question or
two ...  I'd be happy to say thank you with some fine Ghiridelli
chocolate in return.  :)

Mairhtin



Quote:> Hi,

> It seems like I am continually in the wilderness with some of my
> projects, but was wondering if anyone had done any PHP and DB2 work?

> I have a site that uses PHP to do their scripting, and now they need
> to add some real function to the site, which will entail storing stuff
> in a database that has transactional support.  Hence my suggestion for
> DB2 on both the Win2K and Linux versions of their web servers.

> I see from the sites I've visited and the books I've picked up that
> there are functions for Oracle, Sybase, Informix and PostGress, but no
> mention of DB2.  I was thinking that just regular ODBC would be a pain
> and so I thought that mebbe some kind soul had been down this path and
> would be able to show me how to do the simple SIUD stuff (Select
> Insert Update Delete).  Again, a very simple example to start me off
> would be nice!  *making praying hands gesture*

> Thanks in advance for any help offered.

> Mairhtin

> irishboy at Imadethis dot com


 
 
 

PHP and DB2 - anyone done anything with PHP?

Post by Maor7 » Fri, 08 Nov 2002 03:03:40


Hi,

I have use the following PHP class to work with Oracle, SQLServer, MySQL
and now they do support DB2, look at the docs they have tips on how to
set up a PHP DB2 connection on Unix.
I know that PHP-CLOB-DB2 support is not that good, but I may be mistaken

http://php.weblogs.com/ADODB

marcos oliva

Originally posted by Mairhtin O'Feannag

> DOH!

> I guess I answered my own request via the last search I did for
> Laurence:

> http://www7b.boulder.ibm.com/dmdd/library/techarticle/scott/0-
> 614"]http://www7b.boulder.ibm.com/dmdd/library/techarticle/scott/06-
> 14[/url]
> _scott.html

> BUT ...

> If anyone *HAS* done some development and would not mind a question or
> two ...  I'd be happy to say thank you with some fine Ghiridelli
> chocolate in return.  :)

> Mairhtin

> "Mairhtin O'Feannag"  wrote in


> > Hi,

> > It seems like I am continually in the wilderness with some of
>     my
> > projects, but was wondering if anyone had done any PHP and DB2
>     work?

> > I have a site that uses PHP to do their scripting, and now they
>     need
> > to add some real function to the site, which will entail storing
>     stuff
> > in a database that has transactional support.  Hence my
>     suggestion for
> > DB2 on both the Win2K and Linux versions of their web
>     servers.

> > I see from the sites I've visited and the books I've picked up
>     that
> > there are functions for Oracle, Sybase, Informix and PostGress,
>     but no
> > mention of DB2.  I was thinking that just regular ODBC would be
>     a pain
> > and so I thought that mebbe some kind soul had been down this
>     path and
> > would be able to show me how to do the simple SIUD stuff
>     (Select
> > Insert Update Delete).  Again, a very simple example to start me
>     off
> > would be nice!  *making praying hands gesture*

> > Thanks in advance for any help offered.

> > Mairhtin

> > irishboy at Imadethis dot com

--
Posted via http://dbforums.com
 
 
 

1. [PHP] Re: psql with PHP question

Also... is there any reason you don't just do:

SELECT MAX(id) FROM article

rather than what you have below?  It would get you the same thing wouldn't
it and save a query...

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

2. Req: ODBC connession with DB2

3. [PHP] RPMs for PHP accessing PostgreSQL via ODBC over RedHat

4. Finally Interactive reporting is here...

5. [PHP] PostgreSQL + PHP + SQL warning messages

6. Return the Identity value

7. PHP/MySQL vs PHP/Informix performance

8. Remote logins mapped to one local

9. RV: [PHP-DEV] PHP 4.0 Bug #5656 Updated: ifx_pconnect : E [SQLSTA

10. Php question Php Questions !!

11. PHP+MySQL vs. PHP+PostgreSQL

12. Is anyone succesfully using PostgreSQL PHP FormWizard ?

13. Does anyone out there use PHP and Oracle?