ps_open_file

(PECL ps >= 1.1.0)

ps_open_file出力用のファイルを開く

説明

ps_open_file(resource $psdoc, string $filename = ?): bool

ディスク上に新しいファイルを作成し、PostScript ドキュメントをその中に書き込みます。ps_close() が呼ばれると、ファイルは閉じられます。

パラメータ

psdoc

ps_new() が返す、postscript ファイルのリソース ID。

filename

postscript ファイルの名前。 filename が渡されなかった場合、 ドキュメントはメモリ内に作成され、内容は直接ブラウザに出力されます。

戻り値

成功した場合に true を、失敗した場合に false を返します。

参考

  • ps_close() - PostScript ドキュメントを閉じる

add a note add a note

User Contributed Notes 1 note

up
-12
php at catchall dot toao dot net
14 years ago
Today, I used this function and did not specify a path to the file name.  The file was created in C:\Program Files\Apache2.2 instead of the current working directory.  When using this function, be sure to specify the full path to the file that should be created.
To Top