uTools-Manuals/docs/php/px_set_blob_file.html
2019-04-28 19:00:34 +08:00

89 lines
3.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>Sets the file where blobs are read from</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><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 &gt;= 1.3.0)</p><p class="refpurpose"><span class="refname">px_set_blob_file</span> &mdash; <span class="dc-title">Sets the file where blobs are read from</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.px-set-blob-file-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>px_set_blob_file</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$pxdoc</code></span>
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span>
) : <span class="type">bool</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, <span class="function"><a href="px_get_record.html" class="function">px_get_record()</a></span> or
<span class="function"><a href="px_retrieve_record.html" class="function">px_retrieve_record()</a></span> 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 <span class="function"><a href="px_put_record.html" class="function">px_put_record()</a></span>,
<span class="function"><a href="px_insert_record.html" class="function">px_insert_record()</a></span>, or
<span class="function"><a href="px_update_record.html" class="function">px_update_record()</a></span> without calling
<span class="function"><strong>px_set_blob_file()</strong></span> 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" id="refsect1-function.px-set-blob-file-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">pxdoc</code></dt>
<dd>
<p class="para">
Resource identifier of the paradox database
as returned by <span class="function"><a href="px_new.html" class="function">px_new()</a></span>.
</p>
</dd>
<dt>
<code class="parameter">filename</code></dt>
<dd>
<p class="para">
The name of the file. Its extension should be <em>.MB</em>.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.px-set-blob-file-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
成功时返回 <strong><code>TRUE</code></strong> 或者在失败时返回 <strong><code>FALSE</code></strong>
</p>
</div>
</div></div></div></body></html>