Welcome Guest, Not a member yet? Register   Sign In
how to display the blob data of table ci_sessions : resolved :)
#4

(This post was last modified: 09-12-2015, 02:51 AM by casa.)

i resolved my problem
PHP Code:
// you retrieve your dat in ci_sesion_ table of the database y a request 
// .....

$session_data $row->data ;  // your BLOB data who are a String

   
$return_data = array();  // array where you put your "BLOB" resolved data
             
   
$offset 0;
   while (
$offset strlen($session_data)) 
    {
       if (!
strstr(substr($session_data$offset), "|")) 
        {
          throw new 
Exception("invalid data, remaining: " substr($session_data$offset));
        }
          
$pos strpos($session_data"|"$offset);
          
$num $pos $offset;
          
$varname substr($session_data$offset$num);
          
$offset += $num 1;
          
$data unserialize(substr($session_data$offset));
          
$return_data[$varname] = $data;  
          
$offset += strlen(serialize($data));
      }

// in $return_data your will have your datas and can access to its ! :) 
Reply


Messages In This Thread
RE: how to display the blob data presents in the column "data" od table ci_sessions - by casa - 09-12-2015, 02:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB