function _pconnect($argDSN, $argUsername, $argPassword, $argDatabasename)
 {
     global $php_errormsg;
     if (!function_exists('ads_connect')) {
         return null;
     }
     if (isset($php_errormsg)) {
         $php_errormsg = '';
     }
     $this->_errorMsg = isset($php_errormsg) ? $php_errormsg : '';
     if ($this->debug && $argDatabasename) {
         ADOConnection::outp("For PConnect(), {$argDatabasename} is not used. Place dsn in 1st parameter.");
     }
     //  print "dsn=$argDSN u=$argUsername p=$argPassword<br>"; flush();
     if ($this->curmode === false) {
         $this->_connectionID = ads_connect($argDSN, $argUsername, $argPassword);
     } else {
         $this->_connectionID = ads_pconnect($argDSN, $argUsername, $argPassword, $this->curmode);
     }
     $this->_errorMsg = isset($php_errormsg) ? $php_errormsg : '';
     if ($this->_connectionID && $this->autoRollback) {
         @ads_rollback($this->_connectionID);
     }
     if (isset($this->connectStmt)) {
         $this->Execute($this->connectStmt);
     }
     return $this->_connectionID != false;
 }
 public static function connectDB()
 {
     self::$connectionId = ads_connect(self::$connectionString, self::$user, self::$password);
     return self::$connectionId;
 }