ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:adonewconnection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v5:reference:connection:adonewconnection [2020/01/11 22:50] – [Table] mnewnhamv5:reference:connection:adonewconnection [2020/12/08 10:39] (current) – better use PHP string concatenation for example instead of javascript's ;-) peterdd
Line 44: Line 44:
 $driver = 'mysqli'; $driver = 'mysqli';
 $DSN    = "user:password@localhost/employees"; $DSN    = "user:password@localhost/employees";
-$db     = adoNewConnection($driver '://' $DSN);+$db     = adoNewConnection($driver '://' $DSN);
 /* /*
 * Now connected * Now connected
Line 56: Line 56:
 | persist                              | true                                       | [[v5:reference:connection:pconnect|pConnect()]]  | Creates a persistent connection                                      | | persist                              | true                                       | [[v5:reference:connection:pconnect|pConnect()]]  | Creates a persistent connection                                      |
 | persistent        |                    | true                                       | [[v5:reference:connection:pconnect|pConnect()]]  | Creates a persistent connection                                      | | persistent        |                    | true                                       | [[v5:reference:connection:pconnect|pConnect()]]  | Creates a persistent connection                                      |
-| debug                                | true [[v5:userguide:debug|debug]]                                                            || Enables debug mode                                                   +| debug                                | true[[v5:userguide:debug|debug]]                                                            | Enables debug mode                                                   | 
-| charpage          | ado                | string                                                                                       || Undocumented option                                                  | +| port              | mysqli, postgres9  | int                                                                                         | Sets the connection port                                             | 
-| clientflags       | mysql              | string                                                                                      | Sets a list of client flags (obsolete for mysql driver)              +| socket            | mysqli             | string |                    | Sets the connection socket | 
-| port              | mysqli, postgres9  | int                                                                                          || Sets the connection port                                             | +| nls_date_format   | oci8               | string |                    | Set date format            
-| socket            | mysqli             | string                                                                                      | Sets the connection socket                                           +| cachesecs                            | int                                                                                         | Sets the number of cache seconds                                     | 
-| nls_date_format   | oci8               | string                                                                                       || Set date format                                                      +| memCache          |                    | false |[[v5:userguide:memcached|memcache]]                                                    | Enables memcache library for caching                                 | 
-| cachesecs                            | int                                                                                          || Sets the number of cache seconds                                     | +| memCacheHost      |                    | array |[[v5:userguide:memcached|memcache]]                                                    | Array of one or more memcached servers                               | 
-| memCache          |                    | false [[v5:userguide:memcached|memcache]]                                                    || Enables memcache library for caching                                 | +| memCachePort      |                    | int   |[[v5:userguide:memcached|memcache]]                                                      | Optional alternative port to connect to memcache server(s)           | 
-| memCacheHost      |                    | array [[v5:userguide:memcached|memcache]]                                                    || Array of one or more memcached servers                               | +| memCacheCompress  |                    | false |[[v5:userguide:memcached|memcache]]                                                    | Enables memcache compression (not supported with memcached library)  |
-| memCachePort      |                    | int [[v5:userguide:memcached|memcache]]                                                      || Optional alternative port to connect to memcache server(s)           | +
-| memCacheCompress  |                    | false [[v5:userguide:memcached|memcache]]                                                    || Enables memcache compression (not supported with memcached library)  |+
  
 ===== Error Codes ===== ===== Error Codes =====
v5/reference/connection/adonewconnection.1578779435.txt.gz · Last modified: 2020/01/11 22:50 by mnewnham