-
2
- #1
flimpo1234
Programmer
In case anyone is ever looking for this like I was yesterday. The ODBC connection string for PHP to connect to a Peachtree database using Pervasive SQL is:
$dbhandle = odbc_connect("DSN=YOURDSN;DRIVER={Pervasive ODBC Engine Interface};DATAPATH=c:\peachw\YOURCOMPANY;DDFPATH=c:\peachw\YOURCOMPANY","",""
;
Example Using the Demo Company that comes with Peachtree:
$dbhandle = odbc_connect("DSN=bcs;DRIVER={Pervasive ODBC Engine Interface};DATAPATH=c:\peachw\bcs;DDFPATH=c:\peachw\bcs","",""
;
I looked all day for this, and couldn't not find anything useful. Trial and error won out in the end.
Regards,
Flinn
$dbhandle = odbc_connect("DSN=YOURDSN;DRIVER={Pervasive ODBC Engine Interface};DATAPATH=c:\peachw\YOURCOMPANY;DDFPATH=c:\peachw\YOURCOMPANY","",""
Example Using the Demo Company that comes with Peachtree:
$dbhandle = odbc_connect("DSN=bcs;DRIVER={Pervasive ODBC Engine Interface};DATAPATH=c:\peachw\bcs;DDFPATH=c:\peachw\bcs","",""
I looked all day for this, and couldn't not find anything useful. Trial and error won out in the end.
Regards,
Flinn