text
stringlengths
1
254
output
stringlengths
2
255
PHP and Apache have to be configured with EXTRA_LIBS=-lthread.
libpthread がこの䞀芧にない堎合、Apacheを再むンストヌルする必芁 がありたす。
This extension has no configuration directives defined in php.ini.
UnixWareのようないく぀かのシステムでは、libpthreadの代わりに libthreadが䜿甚されおいたす。PHPずApacheは、 EXTRA_LIBS=-lthreadをconfigureに指定する必芁がありたす。
Example 1.
オプション --with-oci8[=DIR] を指定 しおPHPをコンパむルする必芁がありたす。ただし、DIRのデフォルトは、 環境倉数ORACLE_HOMEの倀です。
Example 2.
この拡匵モゞュヌルは蚭定ディレクティブを党く 定矩したせん。
Prev
コマンドラむンで実行するのず同様な手法により、ストアドプロシヌゞャ に簡単にアクセス可胜です。
deaggregate
䟋 2ストアドプロシヌゞャの䜿甚法
Instead of maintaining multiple database drivers that were all nearly identical, these drivers have been unified into a single set of ODBC functions.
通垞のODBCサポヌトに加えお、PHPのUnified ODBC関数では、各々のAPIを 実装するためにODBC APIのセマンティックスを借甚する耇数のデヌタベヌ スにアクセスするこずが可胜です。ほずんど同じ耇数のデヌタベヌスドラ むバを維持管理する代わりに、これらのドラむバは単䞀のODBC関数セットに 統合されおいたす。
Adabas D, IBM DB2, iODBC, Solid, and Sybase SQL Anywhere.
以䞋のデヌタベヌスがUnified ODBCでサポヌトされおいたす。 Adabas D, IBM DB2, iODBC, Solid, Sybase SQL Anywhere
Building PHP with iODBC support enables you to use any ODBC-compliant drivers with your PHP applications. iODBC is maintained by OpenLink Software.
サポヌトされるデヌタベヌスにアクセスするためには、 所定のラむブラリがむンストヌルされおいる必芁がありたす。
To access any of the supported databases you need to have the required libraries installed.
詳现な情報ずこれらのデヌタベヌスに関しおPHPの蚭定に぀いおは、 デヌタベヌスむンストヌ ルオプション の章を参照しお䞋さい。
The windows version of PHP The windows version of PHP has built in support for this extension.
Windows版の PHP にはこの拡匵モゞュヌルのサポヌトが組み蟌たれおいたす。これらの関数を䜿甚するために拡匵モゞュヌルを远加でロヌドする必芁はありたせん。
The behaviour of these functions is affected by settings in php.ini.
これらの関数の動䜜は、 php.ini の蚭定により倉化したす。
Unified ODBC Configuration Options
衚 1Unified ODBC蚭定オプション
odbc.default_user *
泚意 *マヌクが぀いおいる゚ントリは未実装です。
odbc.allow_persistent
以䞋に蚭定ディレクティブに関する簡単な説明を瀺したす。
odbc.check_persistent
odbc_connect() たたは odbc_pconnect() でODBCデヌタ゜ヌ゜が指定されな い堎合に䜿甚されるODBCデヌタ゜ヌス。
odbc.max_persistent
odbc_connect() たたは odbc_pconnect() で名前が指定されない堎合 に䜿甚される名前。
odbc.defaultlrl
odbc_connect() たたは odbc_pconnect() でパスワヌドが指定されない堎合 に䜿甚されるパスワヌド。
odbc.defaultbinmode
持続的ODBC接続を蚱可するかどうか。
Here is a short explanation of the configuration directives.
再利甚する前に接続が有効であるこずを確認したす。
User name to use if none is specified in odbc_connect() or odbc_pconnect().
プロセス毎の持続的ODBC接続の最倧数。
Whether to allow persistent ODBC connections.
プロセス毎の持続的接続を含むODBC接続の最倧数。
The maximum number of persistent ODBC connections per process.
LONGフィヌルドの凊理。倉数に返されるバむト数を指定したす。
Handling of LONG fields.
バむナリデヌタの凊理モヌド。
Handling of binary data.
この拡匵モゞュヌルはリ゜ヌス型を党く定矩し たせん。
The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
これらの定数は、この拡匵モゞュヌルで定矩されおおり、 この拡匵モゞュヌルがPHP内郚にコンパむルされおいるか実行時に動的にロヌ ドされるかのどちらかの堎合のみ䜿甚可胜です。
OpenSSL offers many features that this module currently doesn 't support.
このモゞュヌルは、眲名の生成および認蚌、そしお、デヌタのシヌル (暗号化)およびオヌプン(埩号化)を行うために、 OpenSSL の関数を䜿甚したす。 OpenSSL は倚くの機胜を提䟛したすが、これらはただこのモゞュヌルでは サポヌトされおいたせん。これらのいく぀かは将来的に远加される可胜 性がありたす。
If you are using PHP 4.2.0 or later and are missing the file, you can obtain it from the OpenSSL home page or by downloading the PHP 4.3.0 release and using the configuration file from there.
OpenSSL関数を䜿甚するためには、 OpenSSL パッケヌゞがむンストヌルされ おいるこずを芁したす。 このモゞュヌルでは、PHP 4.0.4pl1 は、OpenSSL = 0.9.6 を必芁ずした すが、PHP-4.0.5以降では、OpenSSL = 0.9.5 でも動䜜したす。
the OPENSSL_CONF environmental variable, if set, will be used as the path (including filename) of the configuration file.
PHPのOpenSSLサポヌトを䜿甚するには、 --with-openssl[=DIR] を指定しおPHPをコンパ むルする必芁がありたす。
The file openssl.cnf will be assumed to be found in the default certificate area, as configured at the time that the openssl DLL was compiled.
Win32ナヌザぞの泚意 このモゞュヌルをWindows環境で䜿甚するには、PHP/Win32バむナリパッケヌ ゞのDLLフォルダから libeay32.dll を䜿甚する WindowsマシンのSYSTEM32フォルダ(䟋: C:\WINNT\SYSTEM32たたは C:\WINDOWS\SYSTEM32)にコピヌする必芁がありたす。
Note that it is possible to override the default path from the script using the configargs of the functions that require a configuration file.
加えおキヌ生成およびサむン認蚌関数を䜿甚する蚈画がある堎合、 システムに有効な openssl.cnf をむンストヌルする 必芁がありたす。PHP 4.3.0以降、Win32バむナリ配垃版に openssl のサンプル蚭定ファむルが含たれおいたす。 PHP 4.2.0以前を䜿甚する堎合やこのファむルがない堎合、 OpenSSLのホヌムペヌゞ から入手す るか、PHP 4.3.0のリリヌス版をダりンロヌドし、それらに含たれる蚭定ファ むルを䜿甚するこずができたす。
Quite a few of the openssl functions require a key or a certificate parameter.
Win32ナヌザぞの泚意 PHPは、 以䞋のロゞックにより openssl.cnf を探したす。
Later versions may use one of the following methods:
環境倉数 OPENSSL_CONF が蚭定された堎合、 蚭定ファむルの(ファむル名を含む)パスずしお䜿甚されたす。
A string containing the content of a certificate, PEM encoded
環境倉数 SSLEAY_CONF が蚭定された堎合、 蚭定ファむルの(ファむル名を含む)パスずしお䜿甚されたす。
A string containing the content of a certificate / key, PEM encoded
ファむル openssl.cnf は、デフォルトの認蚌゚リ アにあるこずが仮定され、openssl DLLがコンパむルされた時間で蚭定 されたす。通垞、デフォルトのファむル名が c:\usr\local\ssl\openssl.cnf であるこずを 意味したす。
When calling a function that will verify a signature / certificate, the cainfo parameter is an array containing file and directory names that specify the locations of trusted CA files.
むンストヌル時に、蚭定ファむルを c:\usr\local\ssl\openssl.cnf たたは 他の堎所にむンストヌルし、(䟋えば仮想ホスト毎に)環境倉数に蚭定ファ むルの堎所を指定するかを遞ぶ必芁がありたす。 蚭定ファむルを必芁ずする関数の configargs によ り、デフォルトのパスを䞊曞きするこずが可胜であるこずに泚意しお䞋さい。
If a directory is specified, then it must be a correctly formed hashed directory as the openssl command would use.
この拡匵モゞュヌルは蚭定ディレクティブを党く 定矩したせん。
The S / MIME functions make use of flags which are specified using a bitfield which can include one or more of the following values:
OpenSSL関数のうちごく小数のみがキヌたたは蚌明曞パラメヌタを必芁ず したす。PHP 4.0.5 より以前では、openssl_get_xxx 関数のどれかによ り返されたキヌたたは蚌明曞リ゜ヌスを䜿甚する必芁がありたした。こ れより埌のバヌゞョンでは、次の方法のどれかを䜿甚するこずが可胜ず なる予定です。
PKCS7 CONSTANTS
蚌明曞
If decrypting or verifying, it strips those headers from the output - if the decrypted or verified message is not of MIME type text / plain then an error will occur.
openssl_x509_read() から返された X.509リ ゜ヌス
normally the input message is converted to "canonical" format which is effectively using CR and LF as end of line: as required by the S / MIME specification.
file://path/to/cert.pem 圢匏の文字列。 このファむルは、PEM゚ンコヌドの蚌明曞である必芁がありたす。
This is useful when handling binary data which may not be in MIME format.
PEM゚ンコヌドされた蚌明曞の内容を含む文字列。
when verifying a message, certificates (if any) included in the message are normally searched for the signing certificate.
公開/秘密キヌ
The supplied certificates can still be used as untrusted CAs however.
openssl_get_publickey() たたは openssl_get_privatekey() から返されたキヌ リ゜ヌス
do not verify the signers certificate of a signed message.
公開キヌのみ: X.509リ゜ヌス
do not chain verification of signers certificates: that is don 't use the certificates in the signed message as untrusted CAs.
file://path/to/file.pem フォヌマットを 有する文字列。このファむルには、PEM゚ンコヌドされた蚌明曞/ 秘密キヌが含たれおいる必芁がありたす。(䞡方を含むこずも可胜 です。)
when signing a message the signer 's certificate is normally included - with this option it is excluded.
PEM゚ンコヌドされた蚌明曞/キヌの内容を含む文字列
PKCS7_NOATTR
秘密キヌに぀いおは、 array($key, $passphrase) ずいう構文を䜿甚するこずも可胜です。 ただし、$key は、file:// たたは䞊蚘のテキスト衚珟圢匏を䜿甚 しお指定したキヌ、$passphrase はその秘密キヌに関するパスワヌ ドを有する文字列を衚したす。
With this option they are not included.
サむン/蚌明曞を認蚌する関数をコヌルする際、 cainfo パラメヌタは、ファむルず認蚌枈みのCA ファむルの堎所を指定するファむルディレクトリ名を含む配列です。 ディレクトリが指定された堎合、 openssl コマンド が䜿甚できるような正しい圢匏にハッシュされたディレクトリである必 芁がありたす。
This is the default if the flags parameter to openssl_pkcs7_sign() if you do not specify any flags.
これらの定数は、この拡匵モゞュヌルで定矩されおおり、 この拡匵モゞュヌルがPHP内郚にコンパむルされおいるか実行時に動的にロヌ ドされるかのどちらかの堎合のみ䜿甚可胜です。
PKCS7_NOSIGS
S/MIME 関数はビットフィヌルドを䜿甚しお指定したフラグを䜿甚したす。 このビットフィヌルドには、以䞋の倀を䞀぀以䞊含むこずが可胜です。
Note:
衚 1PKCS7 CONSTANTS
Prev
泚意 これらの定数は、4.0.6 で远加されたした。
This extension adds support for Oracle database server access.
この拡匵モゞュヌルによりOracleデヌタベヌスサヌバぞのアクセスが可 胜ずなりたす。 OCI8 拡匵モゞュヌル も参照しお䞋さい。
You have to compile PHP with the option --with-oracle[ =DIR], where DIR defaults to your environmment variable ORACLE_HOME.
オプション --with-oracle[=DIR] を指 定しおPHPをコンパむルする必芁がありたす。ただし、DIRのデフォルトは、 環境倉数ORACLE_HOMEの倀です。
Prev
これらの定数は、この拡匵モゞュヌルで定矩されおおり、 この拡匵モゞュヌルがPHP内郚にコンパむルされおいるか実行時に動的にロヌ ドされるかのどちらかの堎合のみ䜿甚可胜です。
The Output Control functions do not affect headers sent using header() or setcookie(), only functions such as echo() and data between blocks of PHP code.
出力制埡関数により、スクリプトから送信される出力を制埡するこずが可 胜になりたす。この機胜は、耇数の異なった堎面、特にスクリプトがデヌ タ出力を開始した埌にヘッダをブラりザに送信する必芁がある堎合に有甚 です。出力制埡関数は、 header() たたは setcookie() を䜿甚しお送信されたヘッダには䜜甚せ ず、 echo() のような関数ずPHPコヌドのブロック間 のデヌタにのみ䜜甚したす。
There is no installation needed to use these functions; they are part of the PHP core.
これらの関数は、暙準モゞュヌルの䞀郚ず しお利甚可胜であり、垞に䜿甚できたす。
Table 1.
これらの関数はPHPコアに含たれるため、䜿甚す る際にむンストヌルは䞍芁です。
output_handler
これらの関数の動䜜は、 php.ini の蚭定により倉化したす。
implicit_flush
衚 1出力制埡蚭定オプション
Here is a short explanation of the configuration directives.
以䞋に蚭定ディレクティブの簡単な説明を瀺したす。
If you wish to limit the size of the buffer to a certain size - you can use a maximum number of bytes instead of 'On', as a value for this directive (e.g., output_buffering=4096).
このディレクティブを'On'ず蚭定するこずにより、党おのファむルに関 しお出力バッファリングを有効にするこずができたす。 特定の倧きさにバッファの倧きさを制限したい堎合、このディレクティ ブの倀ずしお'On'の代わりに最倧バむト数(䟋:output_buffering=4096) を䜿甚するこずができたす。
For example, if you set output_handler to mb_output_handler(), character encoding will be transparently converted to the specified encoding.
スクリプトの党おの出力を関数にリダむレクトするこずができたす。 䟋えば、output_handlerに mb_output_handler() を 指定した堎合、文字゚ンコヌディングは透過的に指定した゚ンコヌディ ングに倉換されたす。出力ハンドラを指定するこずにより自動的に出力 バッファリングをonにしたす。
FALSE by default.
泚意 ob_inconv_handler() ず mb_output_handler() の䞡方で䜿甚するこずはで きたせん。たた、 ob_gzhandler() ず zlib.output_compression の䞡方を䜿甚するこずはできたせん。
This is equivalent to calling the PHP function flush() after each and every call to print() or echo() and each and every HTML block.
デフォルトは FALSE です。これを TRUE 倉曎にするず、PHPが 各出力ブロックの埌で自動的に出力レむダをフラッシュするよう指定し たす。これは、各 print() および HTML ブロックの埌で flush() 関数をコヌルするこずず等䟡です。
This value defaults to TRUE when operating under the CLI SAPI.
Web環境の䞭で PHP を䜿甚しおいる時、 このオプションをonに倉曎するず、著しい性胜䜎䞋が生じるため、 通垞はデバッグ目的のみにするこずが掚奚されたす。 CLI SAPI のもずで実行される時、この倀はデフォルトで TRUE に なっおいたす。
This extension has no resource types defined.
ob_implicit_flush() も参照しお䞋さい。
Example 1.
この拡匵モゞュヌルはリ゜ヌス型を党く定矩し たせん。
?php ob_start(); echo "Hello\n"; setcookie ("cookiename", "cookiedata"); ob_end_flush();?
䟋 1出力制埡の䟋
In the mean time, the call to setcookie() successfully stored a cookie without causing an error. (You can not normally send headers to the browser after data has already been sent.)
䞊蚘の䟋では、 echo() からの出力は、 ob_end_flush() がコヌルされるたで出力バッファに 保存されたす。この際、 setcookie() をコヌルするず゚ラヌを発生するこずな くクッキヌが保存されたす。(通垞、デヌタの送信埌はブラりザにヘッダ を送信するこずはできたせん。)
See also header() and setcookie().
泚意 PHP 4.1 (および4.2)から4.3に曎新する際、前のバヌゞョンのバグのせ いで、 php.ini の implict_flush を OFF にする必芁がありたす。さもないず、 ob_start() を䜿甚する党おの出力は、出力を抑制 するこずができなくなりたす。
ovrimos_rollback
header() および setcookie() も参照䞋さい。
The class named has to define appropriate methods if it wants to have this functionality: __get(), __set() and __call() respectively for getting / setting a property, or calling a method.
このモゞュヌルは、 実隓的 なものです。これは、これらの関数の動䜜、関数名は、このドキュメントに曞かれお事項ず同様に告知なく将来的なPHPのリリヌスで倉曎される可胜性がありたす。泚意を喚起するずずもに、このモゞュヌルは䜿甚者のリスクで䜿甚しお䞋さい。
Inside these handler functions the overloading is disabled so you can access object properties normally.
これらの関数は、暙準モゞュヌルの䞀郚ず しお利甚可胜であり、垞に䜿甚できたす。
Use this extension at your own risk.
以䞋の関数を䜿甚するには、オプション --enable-overload を指定しおPHPをコ ンパむル必芁がありたす。この拡匵モゞュヌルは、 PHP 4.3.0ではデフォルトで有効になっおいたす。 --disable--overload により オヌバヌロヌドのサポヌトを無効ずするこずができたす。
In order to use these functions, you must compile PHP with the --enable-overload In order to use these functions, you must compile PHP with the --enable-overload option.
Windows版の PHP にはこの拡匵モゞュヌルのサポヌトが組み蟌たれおいたす。これらの関数を䜿甚するために拡匵モゞュヌルを远加でロヌドする必芁はありたせん。
You can disable overload support with --disable--overload.
泚意 オヌバヌロヌドの組み蟌みサポヌトはPHP 4.3.0で利甚可胜ずなりたした。
You do not need to load any additional extension in order to use these functions.
この拡匵モゞュヌルは蚭定ディレクティブを党く 定矩したせん。
Builtin support for overload is available with PHP 4.3.0.
この拡匵モゞュヌルはリ゜ヌス型を党く定矩し たせん。
This extension has no resource types defined.
この拡匵モゞュヌルは定数を党く定矩したせ ん。
Some simple examples on using the overload() function:
overload() 関数の簡単な䜿甚䟋をいく぀か瀺したす。
Overloading a PHP class
䟋 1PHPクラスのオヌバヌロヌド
Ovrimos SQL Server, is a client / server, transactional RDBMS combined with Web capabilities and fast transactions.
Ovrimos SQL サヌバヌはクラむアント/サヌバヌ、Webに察応し、高速なト ランザクション凊理が可胜なトランザクション RDBMS です。
This extension is not available on Windows platforms.
泚意 この拡匵モゞュヌルはWindows環境では利甚できたせん。
You 'll need to install the sqlcli library available in the Ovrimos SQL Server distribution.
Ovrimos SQL サヌバヌは、 www.ovrimos.com で入手可胜です。 Ovrimos SQLサヌバヌ配垃ファむルから入手可胜なsqlcliラむブラリをむ ンストヌルする必芁がありたす。
DIR is the Ovrimos' libsqlcli install directory.
PHPでOvrimosサポヌトを有効にするには、パラメヌタ --with-ovrimos[=DIR] をconfigureスクリプト に指定しおPHPをコンパむルしたす。ただし、DIRはOvrimosのlibsqlcliã‚’ã‚€ ンストヌルしたディレクトリです。
Example 1.
この拡匵モゞュヌルは蚭定ディレクティブを党く 定矩したせん。
Process Control should not be enabled within a webserver environment and unexpected results may happen if any Process Control functions are used within a webserver environment.
PHPがサポヌトするプロセス制埡関数は、UNIX圢匏のプロセス生成、プロ セス実行、シグナル凊理、プロセス終了機胜を実装しおいたす。 プロセス制埡は、Webサヌバ環境で有効にするべきではなく、プロセス制 埡関数のどれかがWebサヌバ環境で䜿甚された堎合には、予期しない結果 を生じる可胜性がありたす。
For detailed information about Unix process control you are encouraged to consult your systems documentation including fork( 2), waitpid(2) and signal(2) or a comprehensive reference such as Advanced Programming in the UNIX Environment by W.
この文曞は、プロセス制埡関数の䞀般的な䜿甚法を説明しようずするもの です。UNIXのプロセス制埡に関する詳现な情報に぀いおは、fork(2), waitpid(2) and signal(2)のようなシステムのドキュメントや、 [Advanced Programming in the UNIX Environment by W. Richard Stevens (Addison-Wesley) ]のような優れた参考曞 を読たれるこずを掚奚したす。
This change follows the same semantics as using "user ticks".
泚意 この拡匵モゞュヌルはWindows環境では利甚できたせん。
This allows you to minimize the overhead of handling asynchronous events.
これらの関数は、暙準モゞュヌルの䞀郚ず しお利甚可胜であり、垞に䜿甚できたす。
No external libraries are needed to build this extension.
泚意 珟圚、このモゞュヌルは非UNIX環境(Windows)では動䜜したせん。
You have to compile the CGI or CLI version of PHP with --enable-pcntl configuration option when compiling PHP to enable Process Control support.
この拡匵モゞュヌルは蚭定ディレクティブを党く 定矩したせん。
This extension has no configuration directives defined in php.ini.
この拡匵モゞュヌルはリ゜ヌス型を党く定矩し たせん。
The following list of signals are supported by the Process Control functions.
以䞋のシグナルのリストは、プロセス制埡関数でサポヌトされおいるもの です。これらのシグナルのデフォルト動䜜の詳现に぀いおは、 signal(7) のマニュアルを参照䞋さい。
This example forks off a daemon process with a signal handler.
この䟋は、シグナルハンドラを有するデヌモンプロセスをフォヌクオフ したす。
Process Control Example
䟋 1プロセス制埡の䟋
Prev
POSIX関数 の節を参照するこずも有 甚でしょう。
The expression should be enclosed in the delimiters, a forward slash (/), for example.
以䞋の関数で䜿甚されるパタヌンに関する構文は、Perl に非垞によく䌌お いたす。匏は、デリミタ、䟋えばスラッシュ (/) で囲たれる必芁があり たす。英数字たたはバックスラッシュ(\)以倖の党おの文字をデリミタず しお䜿甚可胜です。デリミタ文字を正芏衚珟本䜓においお䜿甚する必芁が ある堎合は、バックスラッシュで゚スケヌプする必芁がありたす。PHP 4.0.4以降、パタヌン指定甚に Perl圢匏の (), {}, [], も 䜿甚可胜です。