📄 function.px-set-blob-file.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Sets the file where blobs are read from</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.px-retrieve-record.html">px_retrieve_record</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.px-set-parameter.html">px_set_parameter</a></div> <div class="up"><a href="ref.paradox.html">Paradox Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.px-set-blob-file" class="refentry"> <div class="refnamediv"> <h1 class="refname">px_set_blob_file</h1> <p class="verinfo">(PECL paradox:1.3.0-1.4.1)</p><p class="refpurpose"><span class="refname">px_set_blob_file</span> — <span class="dc-title">Sets the file where blobs are read from</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><b>px_set_blob_file</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$pxdoc</tt></span> , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$filename</tt></span> )</div> <p class="para rdfs-comment"> Sets the name of the file where blobs are going to be read from or written into. Without calling this function, <a href="function.px-get-record.html" class="function">px_get_record()</a> or <a href="function.px-retrieve-record.html" class="function">px_retrieve_record()</a> will only return data in blob fields if the data is part of the record and not stored in the blob file. Blob data is stored in the record if it is small enough to fit in the size of the blob field.</p> <p class="para"> Calling <a href="function.px-put-record.html" class="function">px_put_record()</a>, <a href="function.px-insert-record.html" class="function">px_insert_record()</a>, or <a href="function.px-update-record.html" class="function">px_update_record()</a> without calling <b>px_set_blob_file()</b> will result in truncated blob fields unless the data fits into the database file. </p> <p class="para"> Calling this function twice will close the first blob file and open the new one. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">pxdoc</tt></i></span> <dd> <p class="para"> Resource identifier of the paradox database as returned by <a href="function.px-new.html" class="function">px_new()</a>. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">filename</tt></i></span> <dd> <p class="para"> The name of the file. Its extension should be <i>.MB</i>. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure. </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.px-retrieve-record.html">px_retrieve_record</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.px-set-parameter.html">px_set_parameter</a></div> <div class="up"><a href="ref.paradox.html">Paradox Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -