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.
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 を返します。
php at catchall dot toao dot net
05-Jul-2009 05:42
