If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > Accessing pervasive data using odbc

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-20-04, 10:11
mjbgt mjbgt is offline
Registered User
 
Join Date: Apr 2004
Posts: 2
Accessing pervasive data using odbc

Hi all

I am a relative newcomer to Linux, running a small network in a non-profit organisation. The clients are all running Windows and one of them runs a standalone version of Pastel Accounting, with a Pervasive backend. I would like to be able to query the data using PHP over our intranet, but am not sure where to begin.

Do I need a Linux version of Pervasive, or is it possible to simply copy the data onto the Linux box and query it using ODBC and PHP? If I don't need the Linux software, is the pervasive ODBC driver freely available?

Thanks for your help
Reply With Quote
  #2 (permalink)  
Old 04-21-04, 17:16
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
Pervasive stores data in it's own format and as such uses an engine to read the data. This is the same as MySQL or Microsoft SQL Server.
Pervasive does have an engine that runs on Linux and acts as both a client and a server for application data.
You can use the Pervasive Linux clinet which is included with Pervasive.SQL V8.5 to access data through PHP and ODBC on a Linux web server.
If they are using Windows for the Pastel accounting data, why not use IIS or PWS and serve ASP pages using ADO and ODBC? You could also use Apache/PHP/ODBC on the Windows machine where the Pervasive engine is running. It'll eliminate a layer (the Linux box) and still give you web access to the data.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 04-22-04, 02:21
mjbgt mjbgt is offline
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks for your very helpful reply

From what you've said, I think our best option is going to be accessing the data using Apache/PHP/ODBC on the Windows machine.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On