text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
Prev
|
fdf_close(), fdf_save(), fdf_open() も参照下さい。
|
(PHP 4 = 4.3.0)
|
(PHP 4 = 4.3.0)
|
This is zero for a successfull operation or a non-zero error code on failure.
|
fdf_errno() returns the error code set by the last fdf_...() function call. This is zero for a successfull operation or a non-zero error code on failure. A textual description may be obtained using the fdf_error() function.
|
See also fdf_error().
|
See also fdf_error().
|
(PHP 4 = 4.3.0)
|
(PHP 4 = 4.3.0)
|
The function uses the internal error code set by the last operation if no error_code is given, so fdf_error() is a convenient shortcut for fdf_error(fdf_errno()).
|
fdf_error() returns a textual description for the fdf error code given in error_code. The function uses the internal error code set by the last operation if no error_code is given, so fdf_error() is a convenient shortcut for fdf_error(fdf_errno()).
|
Prev
|
See also fdf_errno().
|
(PHP 4 = 4.3.0)
|
(PHP 4 = 4.3.0)
|
The possible values of face are FDFNormalAP, FDFRolloverAP and FDFDownAP.
|
The fdf_get_ap() function gets the appearance of a field (i.e. the value of the /AP key) and stores it in a file. The possible values of face are FDFNormalAP, FDFRolloverAP and FDFDownAP. The appearance is stored in filename.
|
(PHP 4 = 4.3.0)
|
(PHP 4 = 4.3.0)
|
There seems to be no other way to find out the original filename but to store the file using a directory as savepath and check for the basename it was stored under.
|
注意 There seems to be no other way to find out the original filename but to store the file using a directory as savepath and check for the basename it was stored under.
|
path - path were the file got stored
|
The returned array contains the following fields:
|
fdf_get_encoding
|
例 1Storing an uploaded file
|
(PHP 4 = 4.3.0)
|
(PHP 4 = 4.3.0)
|
An empty string is returned if the default PDFDocEncoding / Unicode scheme is used.
|
The fdf_get_encoding() returns the value of the /Encoding key. An empty string is returned if the default PDFDocEncoding/Unicode scheme is used.
|
Prev
|
See also fdf_set_encoding().
|
Prev
|
(PHP 3 = 3.0.6, PHP 4)
|
The fdf_set_file() returns the value of the / F key.
|
fdf_set_file() は /F キーの値を返します。
|
Prev
|
fdf_set_file() も参照下さい。
|
Prev
|
(PHP 3 = 3.0.6, PHP 4)
|
The fdf_get_status() returns the value of the / STATUS key.
|
fdf_get_status() は、/STATUS キーの値を返しま す。
|
Prev
|
fdf_set_status() も参照下さい。
|
The fdf_get_value() function returns the value for the requested fieldname.
|
(PHP 3 = 3.0.6, PHP 4)
|
For non-array fields the optional parameter which will be ignored.
|
fdf_get_value() 関数はフィールドの値を得ます。
|
See also fdf_set_value().
|
fdf_set_value() も参照下さい。
|
Prev
|
(PHP 4 = 4.3.0)
|
This function will return the fdf version for the given fdf_document, or the toolkit api version number if no parameter is given.
|
This function will return the fdf version for the given fdf_document, or the toolkit api version number if no parameter is given.
|
See also fdf_set_version().
|
For the current FDF toolkit 5.0 the api version number is '5.0' and the document version number is either '1.2', '1.3' or '1.4'.
|
fdf_get_value
|
See also fdf_set_version().
|
(PHP 4 = 4.3.0)
|
(PHP 4 = 4.3.0)
|
It sets the Content-type: to application / vnd.fdf.
|
この関数は、簡便に FDF の出力に適当な HTTP ヘッダを付加できるよう 用意されており、 Content-type: を application/vnd.fdf に設定します。
|
The fdf_next_field_name() function returns the name of the field after the field in fieldname or the field name of the first field if the second parameter is NULL.
|
(PHP 3 = 3.0.6, PHP 4)
|
?php $fdf = fdf_open( $HTTP_FDF_DATA); for($field = fdf_next_field_name($fdf); $field != ""; $field = fdf_next_field_name($fdf, $field)) {echo "field: $field\n";}?
|
fdf_next_field_name() 関数は fieldname のフィールドの後のフィールドの名 前を返します。二番目のフィールドに NULL を指定した場合、最初の フィールドの名前を返します。
|
Prev
|
fdf_set_value(), fdf_get_value() も参照下さい。
|
The fdf_open() function opens a file with form data.
|
(PHP 3 = 3.0.6, PHP 4)
|
You can process the results of a PDF form POST request by writing the data recieved in $HTTP_FDF_DATA to a file and open it using fdf_open().
|
fdf_open() 関数はフォームデータを有するファイ ルをオープンします。このファイルは、PDFフォームから返されたのと同 じデータを有している必要があります。現在、ファイルは fopen() を用いて「マニュアル」で作成し、 fwrite() で HTTP_FDF_DATA の内容をそのファイル に書き込む必要があります。動作はHTMLフォームと似ており、各入力フィー ルドに関して存在しない変数は作成されます。
|
Example 1.
|
例 1フォームデータをアクセスする
|
Prev
|
fdf_close() も参照下さい。
|
Prev
|
(PHP 4 = 4.3.0)
|
The fdf_open_string() function reads form data from a string. fdf_data must contain the data as returned from a PDF form or created using fdf_create() and fdf_save_string().
|
The fdf_open_string() function reads form data from a string. fdf_data must contain the data as returned from a PDF form or created using fdf_create() and fdf_save_string().
|
Example 1.
|
You can fdf_open_string() together with $HTTP_FDF_DATA to process fdf form input from a remote client.
|
?php $fdf = fdf_open_string( $HTTP_FDF_DATA);... fdf_close($fdf);?
|
例 1Accessing the form data
|
Prev
|
See also fdf_open(), fdf_close(), fdf_create() and fdf_save_string().
|
The fdf_save() function saves a FDF document.
|
(PHP 3 = 3.0.6, PHP 4)
|
Without a filename fdf_save() will write the FDF to the default PHP output stream.
|
fdf_save() 関数はFDFドキュメントを保存します。 FDFツールキットは、パラメータ filename が '.'の場合、標準出力にドキュメントを出力する機能を提供しています。 この機能は、PHPをApacheモジュールとして使用している場合は使用でき ません。この場合、何らかのファイルに書き込んだ後、例えば fpassthru() を使用してこれを出力する必要があり ます。
|
Prev
|
fdf_close() 及び fdf_create() の例も参照下さい。
|
Prev
|
(PHP 4 = 4.3.0)
|
The fdf_save_string() function returns the FDF document as a string.
|
The fdf_save_string() function returns the FDF document as a string.
|
Retrieving FDF as a string
|
例 1Retrieving FDF as a string
|
See also fdf_save(), fdf_open_string(), fdf_create() and fdf_close().
|
See also fdf_save(), fdf_open_string(), fdf_create() and fdf_close().
|
(PHP 3 = 3.0.6, PHP 4)
|
(PHP 3 = 3.0.6, PHP 4)
|
The possible values of face are FDFNormalAP, FDFRolloverAP and FDFDownAP.
|
fdf_set_ap() 関数はフィールドの外観 (すなわち、/AP キーの値)を設定します。 face には、 1=FDFNormalAP, 2=FDFRolloverAP, 3=FDFDownAP を 設定可能です。
|
(PHP 4 = 4.1.0)
|
(PHP 4 = 4.1.0)
|
Currently the following values are supported: "Shift-JIS", "UHC", "GBK", "BigFive".
|
fdf_set_encoding() は、FDFドキュメントの文字 エンコーディングを設定します。 encoding には有効なエンコーディング名を指定する必要があります。Acrobat 5.0 で使用可能なエンコーディング名は、 "Shift-JIS "," UHC ", "GBK "," BigFive "です。
|
fdf_set_file
|
fdf_set_encoding() は、PHP-4.1.0以降で使用可能 です。
|
The fdf_set_file() selects a different PDF document to display the form results in then the form it originated from.
|
(PHP 3 = 3.0.6, PHP 4)
|
The frame to display the document in may be selected using the optional parameter target_frame or the function fdf_set_target_frame().
|
fdf_set_file() は、/F キーの値を設定します。 /F キーは、データを記入するPDFフォームへのリファレンスです。 Web 環境では、URL (例: http:/testfdf/resultlabel.pdf) となります。
|
Prev
|
fdf_get_file() および fdf_create() の例を参照下さい。
|
Prev
|
(PHP 4 = 4.0.2)
|
The fdf_set_flags() sets certain flags of the given field fieldname.
|
fdf_set_flags() は、指定したフィールド fieldname のフラグを設定します。
|
Prev
|
fdf_set_opt() も参照下さい。
|
Prev
|
(PHP 4 = 4.0.2)
|
fdf_set_javascript_action() sets a javascript action for the given field fieldname.
|
fdf_set_javascript_action() は、指定したフィー ルド fieldname のjavascriptアクションを設定 します。
|
Prev
|
fdf_set_submit_form_action() も参照下さい。
|
Prev
|
(PHP 4 = 4.0.2)
|
The fdf_set_opt() sets options of the given field fieldname.
|
fdf_set_opt() は指定したフィールド fieldname のオプションを設定します。
|
Prev
|
fdf_set_flags() も参照下さい。
|
The fdf_set_status() sets the value of the / STATUS key.
|
(PHP 3 = 3.0.6, PHP 4)
|
See also fdf_get_status().
|
fdf_set_status() は、/STATUS キーの値を設定しま す。
|
fdf_set_submit_form_action
|
fdf_get_status() も参照下さい。
|
Prev
|
(PHP 4 = 4.0.2)
|
The fdf_set_submit_form_action() sets a submit form action for the given field fieldname.
|
fdf_set_submit_form_action() は、 指定したフィールド fieldname の投稿フォーム のアクションを設定します。
|
Prev
|
fdf_set_javascript_action() も参照下さい。
|
(PHP 4 = 4.3.0)
|
(PHP 4 = 4.3.0)
|
See also fdf_save_file().
|
Sets the target frame to display a result PDF defined with fdf_save_file() in.
|
fdf_set_submit_form_action
|
See also fdf_save_file().
|
The value will be stored as a string unless it is an array.
|
(PHP 3 = 3.0.6, PHP 4)
|
The value is no longer used in the current toolkit version 5.0.
|
fdf_set_value() 関数は、フィールドの値を設定し ます。最後のパラメータは、フィールドの値をPDF Nameに変換する (isName = 1)か、PDF Stringに設定する (isName = 0)かを定義します。
|
Support for value arrays was added in PHP 4.3.
|
fdf_get_value() も参照下さい。
|
This function will set the fdf version for the given fdf_document.
|
(PHP 4 = 4.3.0)
|
For the current FDF toolkit 5.0 version may be either '1.2', '1.3' or '1.4 '.
|
This function will set the fdf version for the given fdf_document. Some features supported by this extension are only available in newer fdf versions. For the current FDF toolkit 5.0 version may be either '1.2', '1.3' or '1.4'.
|
Prev
|
See also fdf_get_version().
|
Prev
|
(PHP 3, PHP 4)
|
Returns TRUE if the file pointer is at EOF or an error occurs; otherwise returns FALSE.
|
ファイルポインタがEOFに達しているかエラーの場合に TRUE 、 その他の場合に FALSE を返します。
|
Prev
|
ファイルポインタは有効なものでなければならず、また fopen() または fsockopen() で正常にオープンされたファイルを指している必要があります。
|
Prev
|
(PHP 4 = 4.0.1)
|
This function forces a write of all buffered output to the resource pointed to by the file handle handle.
|
この関数は、バッファリングされた全ての出力をファイルファイルハン ドル fp が指すリソースに強制的に書き込みま す。成功時に TRUE 、その他の場合に FALSE を返します。
|
The file pointer must be valid, and must point to a file successfully opened by fopen(), popen(), or fsockopen().
|
ファイルポインタは有効なポインタである必要があり、 fopen() 、 popen() 、 fsockopen() で正しくオープンされたファイルを指 している必要があります、
|
Prev
|
(PHP 3, PHP 4)
|
Returns a string containing a single character read from the file pointed to by handle.
|
fp が指すファイルポインタから1文字読み出し、 その文字からなる文字列を返します。EOFの場合に FALSE を返します。
|
The file pointer must be valid, and must point to a file successfully opened by fopen(), popen(), or fsockopen().
|
ファイルポインタは有効なものでなければならず、また fopen() 、 popen() または fsockopen() で正常にオープンされたファイルを指している必要があります。
|
See also fread(), fopen(), popen(), fsockopen(), and fgets().
|
fread(), fopen(), popen(), fsockopen(), fgets() も参照下さい。
|
(PHP 3 = 3.0.8, PHP 4)
|
(PHP 3 = 3.0.8, PHP 4)
|
The optional third delimiter parameter defaults as a comma.
|
fgets() に動作は似ていますが、 fgetcsv() は行を CSV フォーマッ トのフィールドとして読込み処理を行い、読み込んだフィールドを含む 配列を返すという違いがあります。フィールドのデリミタは、オプショ ンの3番目のパラメータで別のデリミタを指定した場合を除きカンマです。
|
If enclosure is more than one character, only the first character is used.
|
fp は、 fopen() 、 popen() 、 fsockopen() で正常 にオープンされたファイルへのファイルポインタである必要があります。
|
The handle parameter must be a valid file pointer to a file successfully opened by fopen(), popen(), or fsockopen().
|
length は、(行末文字を考慮して)CSVファイル にある最も長い行よりも大きい必要があります。
|
fgetcsv() returns FALSE on error, including end of file.
|
fgetcsv() はファイルの終端に達した場合を含み、 エラー時に FALSE を返します。
|
Example 1.
|
CSVファイルの空行はヌルフィールドを一つだけ含む配列として返され、 エラーにはなりません。
|
?php $row = 1; $handle = fopen ("test.csv" ,"r"); while ($data = fgetcsv ($handle, 1000, ",")) {$num = count ($data); print" p $num fields in line $row: br \n"; $row++; for ($c=0; $c $num; $c++) {print $data[$c]. "br \n";}} fclose ($handle);?
|
例 1 fgetcsv() によりCSV ファイルの内容全体を読み 込み、出力します。
|
Returns a string of up to length - 1 bytes read from the file pointed to by handle.
|
(PHP 3, PHP 4)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.