Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pervasive ODBC and PHP 2

Status
Not open for further replies.

flimpo1234

Programmer
Mar 30, 2003
11
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top