53 require_once
'MDB2.php';
97 if (!preg_match(
'/^rb?\+?$/', $mode)) {
101 if (empty(
$url[
'host'])) {
104 $this->db_index = (int)
$url[
'host'];
105 if (!isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
109 $this->lob_index = (int)
$url[
'user'];
110 if (!isset($db->datatype->lobs[$this->lob_index])) {
129 if (isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
131 $db->datatype->_retrieveLOB($db->datatype->lobs[$this->lob_index]);
133 $data = $db->datatype->_readLOB($db->datatype->lobs[$this->lob_index], $count);
134 $length = strlen(
$data);
170 if (isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
187 if (!isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
192 $result = $db->datatype->_endOfLOB($db->datatype->lobs[$this->lob_index]);
193 if (version_compare(phpversion(),
"5.0",
">=")
194 && version_compare(phpversion(),
"5.1",
"<")
228 if (isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
231 'db_index' => $this->db_index,
232 'lob_index' => $this->lob_index,
247 if (isset(
$GLOBALS[
'_MDB2_databases'][$this->db_index])) {
249 if (isset($db->datatype->lobs[$this->lob_index])) {
250 $db->datatype->_destroyLOB($db->datatype->lobs[$this->lob_index]);
251 unset($db->datatype->lobs[$this->lob_index]);
259 if (!stream_wrapper_register(
"MDB2LOB",
"MDB2_LOB")) {
stream_eof()
Check if stream reaches EOF.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
stream_open($path, $mode, $options, &$opened_path)
open stream
stream_seek($offset, $whence)
Seek stream, not implemented.
Create styles array
The data for the language used.
stream_read($count)
read stream
& raiseError($code=null, $mode=null, $options=null, $userinfo=null)
This method is used to communicate an error and invoke error callbacks etc.
stream_write($data)
write stream, note implemented
stream_stat()
return information about stream
stream_close()
close stream
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
stream_tell()
return the current position