text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
Always refer to the module-specific documentation as well.
|
例 1 dbx_error() の例
|
The error message for Microsoft SQL Server is actually the result of the mssql_get_last_message() function.
|
注意 必ずモジュール毎のドキュメントも参照下さい。
|
Prev
|
Microsoft SQL Serverに関するエラーメッセージは、実際には mssql_get_last_message() 関数の結果となります。
|
Prev
|
(PHP 4 = 4.3.0)
|
dbx_escape_string() returns the text, escaped where necessary (such as quotes, backslashes etc).
|
dbx_escape_string() returns the text, escaped where necessary (such as quotes, backslashes etc). It returns NULL on error.
|
Example 1. dbx_escape_string() example
|
例 1 dbx_escape_string() example
|
Prev
|
See also: dbx_query().
|
It may be any combination of the following constants with the bitwise OR operator (_BAR_).
|
(PHP 4 = 4.0.6)
|
For example, in the expression data[ 2][3] 2 stands for the row (or record) number and 3 stands for the column (or field) number.
|
このモジュールは、 実験的 なものです。これは、これらの関数の動作、関数名は、このドキュメントに書かれて事項と同様に告知なく将来的なPHPのリリースで変更される可能性があります。注意を喚起するとともに、このモジュールは使用者のリスクで使用して下さい。
|
Associated results are actually references to the numerically indexed data, so modifying data[ 0][0] causes that data[0]['field_name_for_first_column'] is modified as well.
|
dbx_result_object には、5つのメンバがあります。 (flags によっては4つの場合もあります)これら は、'handle', 'cols', 'rows', 'info'(オプション), 'data'です。 handle は、指定したモジュールに関する有効な結果IDであり、次のよう にモジュール専用関数で使用可能です。
|
The returing object has four or five properties depending on flags:
|
メンバ cols および rows は、それぞれカラム(またはフィールド)番号 および行(またはレコード)番号です。例えば、
|
$result = dbx_query ($link, "SELECT id FROM table"); mysql_field_len ($result - handle, 0);
|
メンバinfoは、DBX_RESULT_INFOまたはDBX_RESULT_ASSOCが flags パラメータで指定された場合のみ返され ます。このメンバは2次元配列で、カラム情報を取得するために二つのレ コード("name"と"type")を有しています。例えば、
|
It is returned only if either DBX_RESULT_INFO or DBX_RESULT_ASSOC is specified in the flags parameter.
|
メンバdataには、実際の結果が含まれます。そして、カラム名も同様に 関連しています。DBX_RESULT_ASSOCが設定された場合、 $result- data[2]["fieldname"] を使用することが 可能です。
|
This property contains the actual resulting data, possibly associated with column names as well depending on flags.
|
例 1 dbx_query() の例
|
Example 3. outputs the content of data property into HTML table
|
注意 モジュール毎のドキュメントも参照下さい。
|
Column names for queries on an Oracle database are returned in lowercase.
|
dbx_connect() も参照下さい。
|
It is always better to use ORDER BY SQL clause instead of dbx_sort(), if possible.
|
(PHP 4 = 4.0.6)
|
Prev
|
成功時に TRUE 、エラー時に FALSE を返します。
|
dbx_query
|
例 1 dbx_sort() の例
|
DB+ + Functions
|
dbx_compare() も参照下さい。
|
(PHP 3 = 3.0.7, PHP 4)
|
(PHP 3 = 3.0.7, PHP 4)
|
It also allows you to specify a category.
|
この関数により単一の参照についてカレントのドメインを上書きすること ができます。この関数ではカテゴリも指定可能です。
|
Warning
|
(PHP 4 = 4.2.0)
|
Prev
|
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
|
(PHP 4 = 4.2.0)
|
(PHP 4 = 4.2.0)
|
Prev
|
See also aggregate(), aggregate_methods(), aggregate_methods_by_list(), aggregate_methods_by_regexp(), aggregate_properties(), aggregate_properties_by_list(), aggregate_properties_by_regexp(), aggregate_info()
|
(PHP 4 = 4.3.0)
|
(PHP 4 = 4.3.0)
|
The possible returned elements are listed in the following table:
|
debug_backtrace() generates a PHP backtrace and returns this information as an associative array. The possible returned elements are listed in the following table:
|
If inside a included file, this lists the included file name( s).
|
表 1Possible returned elements from debug_backtrace()
|
Example 1. debug_backtrace() example
|
The following is a simple example.
|
Prev
|
例 1 debug_backtrace() example
|
Error Handling and Logging Functions
|
See also trigger_error().
|
Disables the internal PHP debugger.
|
(PHP 3)
|
For more information see the appendix on Debugging PHP.
|
PHPの内部デバッガを無効にします。デバッガはまだ開発中です。
|
Enables the internal PHP debugger, connecting it to address.
|
(PHP 3)
|
For more information see the appendix on Debugging PHP.
|
PHPの内部デバッガを有効にし、 address に 接続します。デバッガはまだ開発中です。
|
(PHP 3, PHP 4)
|
(PHP 3, PHP 4)
|
The largest number that can be converted is 4294967295 in decimal resulting to a string of 32 1 's.
|
引数numberを2進数表現した文字列を返します。変換することが出来る最 大の数は 10 進数の 2147483647 であり、31 ビット 1 が並んだ 2進数 となります。
|
Prev
|
bindec() も参照下さい。
|
(PHP 3, PHP 4)
|
(PHP 3, PHP 4)
|
The largest number that can be converted is 2147483647 in decimal resulting to "7fffffff".
|
引数numberを 16 進数表現した文字列を返します。変換できる最大の数 字は 2147483647 であり、"7ffffffff"を返します。
|
Prev
|
hexdec() も参照下さい。
|
(PHP 3, PHP 4)
|
(PHP 3, PHP 4)
|
The largest number that can be converted is 2147483647 in decimal resulting to "17777777777".
|
引数numberを 8 進数表現した文字列を返します。変換出来る最大の数字 は 10 進数の 2147483647 であり、"17777777777" を返します。 octdec() も参照下さい。
|
Prev
|
(PHP 3, PHP 4)
|
Returns TRUE if the named constant given by name has been defined, FALSE otherwise.
|
name で指定した名前の定数が定義されている 場合に TRUE 、その他の場合に FALSE を返します。
|
Checking Constants
|
例 1定数のチェック
|
See also define(), constant(), get_defined_constants() and the section on Constants.
|
define(), constant() および 定数 の節も参照下さい。
|
See the section on constants for more details.
|
(PHP 3, PHP 4)
|
The optional third parameter case_insensitive is also available.
|
名前を指定して定数を定義します。詳細は、 定数の節 を参照下さい。
|
The default behaviour is case-sensitive; i.e.
|
定数の名前は name により指定され、 値は value により指定されます。
|
Returns TRUE on success or FALSE on failure.
|
例 1定数の定義
|
Prev
|
define() は成功時に TRUE 、エラー発生時に FALSE を返します。
|
constant
|
defined(), constant() および 定数 の節も参照下さい。
|
Prev
|
(PHP 3, PHP 4)
|
Initializes all constants used in the syslog functions.
|
syslog関数で使用される全ての定数を初期化します。
|
Prev
|
openlog(), syslog(), closelog() も参照下さい。
|
Prev
|
(PHP 3 = 3.0.4, PHP 4)
|
This function converts number from degrees to the radian equivalent.
|
この関数は、 number を度単位からラジアンに変 換します。
|
Prev
|
rad2deg() も参照下さい。
|
Prev
|
(no version information, might be only in CVS)
|
This is a dummy manual entry to satisfy those people who are looking for unlink() or unset() in the wrong place.
|
この関数はダミーの関数エントリであり、間違った場所で unlink() または unset() を 要求する人の要求を満足させるためのものです。
|
Prev
|
ファイルを削除するには unlink() 、変数を削除するには unset() も参照下さい。
|
Prev
|
(PHP 3 = 3.0.7, PHP 4)
|
The dgettext() function allows you to override the current domain for a single message lookup.
|
関数 dgettext() により単一のメッセージ参照につい てカレントのドメインを上書きすることができます。
|
Prev
|
この関数は exit() のエイリアスです。
|
Prev
|
(PHP 4 = 4.2.0)
|
The function dio_close() closes the file descriptor resource.
|
関数 dio_close() は、ファイル記述子 resource を閉じます。
|
Prev
|
(PHP 4 = 4.2.0)
|
The dio_fcntl() function performs the operation specified by cmd on the file descriptor fd.
|
関数 dio_fcntl() は、ファイル記述子 fd において cmd で指定 された処理を行います。いくつかのコマンドでは、オプションの引数 args の指定が必要となります。
|
arg is an associative array, when cmd is F_SETLK or F_SETLLW, with the following keys:
|
cmd がF_SETLKまたはF_SETLLWの場合、 arg は連想配列で、以下のキーを有します。
|
"start" - offset where lock begins
|
"start" - ロック開始場所からのオフセット
|
"length" - size of locked area. zero means to end of file
|
"length" - ロック領域の大きさ。0はファイル終端を意味します。
|
"wenth" - Where l_start is relative to: can be SEEK_SET, SEEK_END and SEEK_CUR
|
"wenth" - l_startの相対位置指定: SEEK_SET, SEEK_END, SEEK_CUR のどれかとします。
|
cmd can be one of the following operations:
|
"type" - ロックの種類: F_RDLCK (読み込みロック), F_WRLCK (書き込みロック), F_UNLCK (ロック解除)のどれかとします。
|
F_SETLK - Lock is set or cleared.
|
cmd は以下の処理のどれかとします。
|
F_SETLKW - like F_SETLK, but in case the lock is held by someone else, dio_fcntl() waits until the lock is released.
|
F_SETLK - ロックは設定またはクリアされます。lockが他の誰かに設 定されている場合、 dio_fcntl() は-1を返します。
|
If there is no obstruction key "type" will set to F_UNLCK.
|
F_SETLKW - F_SETLKと似ていますが、ロックが他の誰かに設定されて いる場合、 dio_fcntl() はそのロックが解放され るまで待ちます。
|
F_SETFL - Sets the file descriptors flags to the value specified by arg, Which can be O_APPEND,O_NONBLOCK or O_ASYNC.
|
F_GETLK - dio_fcntl() は、他の誰かがロックを 妨げる場合、(上記の)連想配列を返します。妨げるものがない場合、 キー"type"はF_UNLCKに設定されます。
|
Prev
|
F_DUPFD - arg 以上で最小の数値の利用可能 なファイル記述子を探して返します。
|
(PHP 4 = 4.2.0)
|
(PHP 4 = 4.2.0)
|
If flags is O_CREAT, optional third parameter mode will set the mode of the file (creation permissions).
|
dio_open() は、ファイルをオープンし、そのファイ ル記述子を返します。何らかのエラーが発生した場合は、-1を返します。 flags がO_CREATの場合、オプションの3番目の パラメータ mode がファイルのモード(作成許可 属性)を設定します。 flags パラメータは、以下 のオプションのどれかとします。
|
The flags parameter can be one of the following options:
|
O_RDONLY - 読み込みアクセスでファイルをオープン
|
O_WRONLY - opens the file for write access
|
O_WRONLY - 書き込みアクセスでファイルをオープン
|
O_RDWR - opens the file for both reading and writing
|
O_RDWR - 読み書き両用でファイルをオープン
|
O_CREAT - creates the file, if it doesn 't already exist
|
O_CREAT - ファイルが存在しない場合は作成します。
|
O_TRUNC - if file exists, and its opened for write access, file will be truncated to zero length.
|
O_EXCL - O_CREATとO_EXCLが両方とも設定された場合、ファイルが既 に存在すると dio_open() は失敗します。
|
O_NONBLOCK - sets non blocking mode
|
O_TRUNC - ファイルが存在し、書き込みアクセスでオープンされる場 合には、ファイルは長さゼロに丸められます。
|
Home
|
O_APPEND - ファイルの後端にデータを書き込みます。
|
dio_fcntl
|
O_NONBLOCK - 非ブロッキングモードに設定します。
|
(PHP 4 = 4.2.0)
|
(PHP 4 = 4.2.0)
|
If n is not specified, dio_read() reads 1K sized block and returns them.
|
関数 dio_read() は、記述子 resource から n バイト を読み込んで返します。 n が指定されない場合、 dio_read() は1kサイズのブロックを読み込んで返し ます。
|
(PHP 4 = 4.2.0)
|
(PHP 4 = 4.2.0)
|
The parameter whence specifies how the position pos should be interpreted:
|
関数 dio_seek() は、記述子 resource を有するファイルのファイル位置を変 更する際に使用されます。パラメータ whence は、 位置 pos の記述方式を指定します。
|
SEEK_CUR - Specifies that pos is a count of characters from the current file position.
|
SEEK_SET - pos がファイル先頭からの位置 であることを指定します。
|
SEEK_END - Specifies that pos is a count of characters from the end of the file.
|
SEEK_CUR - pos がカレントのファイル位置 からの文字数であることを指定します。このカウントは正または負で す。
|
If you set the position past the current end, and actually write data, you will extend the file with zeros up to that position
|
SEEK_END - pos がファイル終端からの文字 数であることを指定します。負のcountは、カレントのファイルの範 囲内に位置を指定します。正のcountは、カレントの終端を過ぎた位 置を指定します。カレントの終端を位置を指定し、データを実際に書 き込んだ場合、ファイルはその位置までゼロバイトで埋めて拡張され ます。
|
Prev
|
(PHP 4 = 4.2.0)
|
Function dio_stat() returns information about the file with file descriptor fd. dio_stat() returns an associative array with the following keys:
|
関数 dio_stat() は、ファイル記述子 fd に関する情報を返します。 dio_stat() は、以下のキーを有する連想配列を返し ます。
|
"device" - device
|
"device" - device
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.