Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 2394

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get BLOB/CLOB data size</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.cubrid-lob-send.html">cubrid_lob_send</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.cubrid-lob2-bind.html">cubrid_lob2_bind</a></div>
 <div class="up"><a href="ref.cubrid.html">CUBRID Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.cubrid-lob-size" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">cubrid_lob_size</h1>
  <p class="verinfo">(PECL CUBRID &gt;= 8.3.1)</p><p class="refpurpose"><span class="refname">cubrid_lob_size</span> &mdash; <span class="dc-title">Get BLOB/CLOB data size</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.cubrid-lob-size-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>cubrid_lob_size</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$lob_identifier</code></span>  
   )</div>

  <p class="para rdfs-comment">
    <span class="function"><strong>cubrid_lob_size()</strong></span> is used to get BLOB/CLOB data size.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.cubrid-lob-size-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
  <dl>

    <dt>

     <span class="term"><em><code class="parameter">lob_identifier</code></em></span>
     <dd>
<p class="para">LOB identifier.</p></dd>

   </dt>

  </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.cubrid-lob-size-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
    A string representing LOB data size, when process is successful.
  </p>
    <p class="para">
    <strong><code>FALSE</code></strong>, when process is unsuccessful.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.cubrid-lob-size-changelog">
  <h3 class="title">Changelog</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.4.0</td>
       <td>
        Change return value type from int to string.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>



 <div class="refsect1 examples" id="refsect1-function.cubrid-lob-size-examples">
  <h3 class="title">Examples</h3>
  <div class="example" id="example-1033">
   <p><strong>Example #1  <span class="function"><strong>cubrid_lob_size()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$lobs&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">cubrid_lob_get</span><span style="color: #007700">(</span><span style="color: #0000BB">$con</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"SELECT&nbsp;doc_content&nbsp;FROM&nbsp;doc&nbsp;WHERE&nbsp;doc_id=5"</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #DD0000">"Doc&nbsp;size:"</span><span style="color: #007700">.</span><span style="color: #0000BB">cubrid_lob_size</span><span style="color: #007700">(</span><span style="color: #0000BB">$lobs</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);<br /></span><span style="color: #0000BB">cubrid_lob_export</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$lobs</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">"doc_5.txt"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">cubrid_lob_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$lobs</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

  </div>
 </div>


  <div class="refsect1 seealso" id="refsect1-function.cubrid-lob-size-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.cubrid-lob-get.html" class="function" rel="rdfs-seeAlso">cubrid_lob_get()</a> - Get BLOB/CLOB data</span></li>  
    <li class="member"> <span class="function"><a href="function.cubrid-lob-close.html" class="function" rel="rdfs-seeAlso">cubrid_lob_close()</a> - Close BLOB/CLOB data</span></li>  
    <li class="member"> <span class="function"><a href="function.cubrid-lob-export.html" class="function" rel="rdfs-seeAlso">cubrid_lob_export()</a> - Export BLOB/CLOB data to file</span></li>     
    <li class="member"> <span class="function"><a href="function.cubrid-lob-send.html" class="function" rel="rdfs-seeAlso">cubrid_lob_send()</a> - Read BLOB/CLOB data and send straight to browser</span></li>     
   </ul>
  </p>
  </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.cubrid-lob-send.html">cubrid_lob_send</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.cubrid-lob2-bind.html">cubrid_lob2_bind</a></div>
 <div class="up"><a href="ref.cubrid.html">CUBRID Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>