<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ps.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.ps-open-file.php',
    1 => 'ps_open_file',
    2 => '出力用のファイルを開く',
  ),
  'up' => 
  array (
    0 => 'ref.ps.php',
    1 => 'PS 関数',
  ),
  'prev' => 
  array (
    0 => 'function.ps-new.php',
    1 => 'ps_new',
  ),
  'next' => 
  array (
    0 => 'function.ps-open-image.php',
    1 => 'ps_open_image',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/ps/functions/ps-open-file.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ps-open-file" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ps_open_file</h1>
  <p class="verinfo">(PECL ps &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">ps_open_file</span> &mdash; <span class="dc-title">出力用のファイルを開く</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ps-open-file-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ps_open_file</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$psdoc</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$filename</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
    ディスク上に新しいファイルを作成し、PostScript
    ドキュメントをその中に書き込みます。<span class="function"><a href="function.ps-close.php" class="function">ps_close()</a></span>
    が呼ばれると、ファイルは閉じられます。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ps-open-file-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">psdoc</code></dt>
     <dd>
      <p class="para">
       <span class="function"><a href="function.ps-new.php" class="function">ps_new()</a></span> が返す、postscript
       ファイルのリソース ID。
      </p>
     </dd>
    
    
     <dt><code class="parameter">filename</code></dt>
     <dd>
      <p class="para">
       postscript ファイルの名前。
       <code class="parameter">filename</code> が渡されなかった場合、
       ドキュメントはメモリ内に作成され、内容は直接ブラウザに出力されます。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ps-open-file-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   成功した場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ps-open-file-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ps-close.php" class="function" rel="rdfs-seeAlso">ps_close()</a> - PostScript ドキュメントを閉じる</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>