PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
MDB2: What is 'dbsyntax'?

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database
View previous topic :: View next topic  
Author Message
Jesdisciple



Joined: 24 Mar 2008
Posts: 11
Location: Texas

PostPosted: Mon Mar 24, 2008 9:22 pm    Post subject: MDB2: What is 'dbsyntax'? Reply with quote

I understand every part of the DSN except the 'dbsyntax'... When would this be different from the 'phptype'? Thanks!

EDIT: Just noticed one other part I don't understand: the GET data. Why is "option=8&another=true" included?
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Mon Mar 24, 2008 11:31 pm    Post subject: Re: MDB2: What is 'dbsyntax'? Reply with quote

Jesdisciple wrote:
I understand every part of the DSN except the 'dbsyntax'... When would this be different from the 'phptype'?


I only know one example: Firebird and Interbase; Firebird was derived from Interbase. 'phptype' is in both cases 'ibase', while 'dbsyntax' can be switched to 'firebird'.

Jesdisciple wrote:
EDIT: Just noticed one other part I don't understand: the GET data. Why is "option=8&another=true" included?


It allows you to specify some options, e.g. the charset.

Examples for these both parts of the DSN syntax can be found here:
http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
Back to top
View user's profile Send private message
Jesdisciple



Joined: 24 Mar 2008
Posts: 11
Location: Texas

PostPosted: Tue Mar 25, 2008 2:05 am    Post subject: Reply with quote

What keys and values are expected in the query string?
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Tue Mar 25, 2008 8:27 am    Post subject: Reply with quote

Jesdisciple wrote:
What keys and values are expected in the query string?


See Table 37-1 on the mentioned manual page, but the options are very driver specific. You'll have to look into the source files (MDB2/Driver/[DBMS].php) for a complete list.
Back to top
View user's profile Send private message
Jesdisciple



Joined: 24 Mar 2008
Posts: 11
Location: Texas

PostPosted: Tue Mar 25, 2008 8:30 am    Post subject: Reply with quote

Oh, woops. I should have seen that. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software