downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ps_open_image_file> <ps_new
[edit] Last updated: Fri, 25 May 2012

view this page in

ps_open_file

(PECL ps >= 1.1.0)

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

説明

bool ps_open_file ( resource $psdoc [, string $filename ] )

ディスク上に新しいファイルを作成し、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 ps_open_file
php at catchall dot toao dot net 05-Jul-2009 05:42
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.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites