Re: Connection with PHP

128 views
Skip to first unread message

Jimmitry PAYET

unread,
Sep 14, 2012, 6:51:19 AM9/14/12
to h2-da...@googlegroups.com
Hi, 

try,


PostgreSQL ODBC driver ...

Regards,
Jimmitry.

2012/9/14 Israel <a.sfo...@gmail.com>
Hello,

Anyone know how to connect to H2 embedded DB with PHP ?

Let's suppose I have the DB instlled here:

C:\H2\mydb.h2

<?php

$connection = pg_connect("host=???????? port=8082 dbname= user=sa password=") 
  or die ("Cannot connect! "); 

?>

Do you have any idea ? I tried to put C:\H2\mydb.h2 but it does not work.

thank you

--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To view this discussion on the web visit https://groups.google.com/d/msg/h2-database/-/IB9FCaoC9R8J.
To post to this group, send email to h2-da...@googlegroups.com.
To unsubscribe from this group, send email to h2-database...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.

Israel

unread,
Sep 14, 2012, 6:58:27 AM9/14/12
to h2-da...@googlegroups.com
Hello  Jimmy,

I understand that but what about the portability on linux ?

Jimmitry PAYET

unread,
Sep 14, 2012, 7:04:06 AM9/14/12
to h2-da...@googlegroups.com
I use H2 on linux with Java7 from Oracle,
and PostgreSQL ODBC driver is fully compatible with Linux.

Regards,
Jimmitry

2012/9/14 Israel <a.sfo...@gmail.com>
To view this discussion on the web visit https://groups.google.com/d/msg/h2-database/-/mh0CrII-wVIJ.
Reply all
Reply to author
Forward
0 new messages