...){ if ($this->_sock === null) { throw new XSException('No server connection'); } if ($this->_flag & self::BROKEN) { throw new XSException('Broken server connection'); }} 检测服务端的连接情况
connect() 方法 public void connect(array $param) $param array 连接参数, 包含: user,pass,host,table,dbname ... 源码: sdk/php/util/XSDataSource.class.php#L479 (显示) public function connect($param){ $host = isset($param['host']) ? $param['host'] : ini_get('mysql.defa...
connect() 方法 public void connect(array $param) $param array 连接参数, 包含: user,pass,host,table,dbname ... 源码: sdk/php/util/XSDataSource.class.php#L621 (显示) public function connect($param){ $host = isset($param['host']) ? $param['host'] : ini_get('mysqli.def...
connect() 方法 protected void connect() 源码: sdk/php/lib/XSServer.class.php#L452 (显示) protected function connect(){ // connect to server $conn = $this->_conn; if (is_int($conn) || is_numeric($conn)) { $host = 'localhost'; $port = intval($conn); } elseif...
...描述定义于 close() 关闭数据库连接 XSDatabaseMySQL connect() 连接数据库 XSDatabaseMySQL query() 执行 SQL 语句查询 XSDatabaseMySQL query1() 查询数据库首行 XSDatabase setUtf8() 将输出字符集设置为 UTF-8 XSDatabaseMySQL ...
...描述定义于 close() 关闭数据库连接 XSDatabaseMySQLI connect() 连接数据库 XSDatabaseMySQLI query() 执行 SQL 语句查询 XSDatabaseMySQLI query1() 查询数据库首行 XSDatabase setUtf8() 将输出字符集设置为 UTF-8 XSDatabaseMySQLI ...
...述定义于 check() 检测服务端的连接情况 XSServer connect() 连接服务端 XSServer read() 读取数据 XSServer write() 写入数据 XSServer 属性明细 _conn 属性 protected $_conn; _flag 属性 protected $_flag; _project 属...