text
stringlengths
1
254
output
stringlengths
2
255
For instance, in the MySQL / mSQL modules, when there' s a pconnect() call (persistent connect), the function builds a string out of the host / user / passwd that were passed to the function, and hashes the SQL link with this string as a key.
'list' が 'plist' に眮きかえられるだけで、 党く同じむンタヌフェヌスが、暙準リ゜ヌスリストず 持続的リ゜ヌスリストに存圚したす。
Until further documented, you should look at mysql.c or msql.c to see how one should use the plist 's hash table abilities.
php3_plist_insert(ptr, type) - 新芏に挿入されたリ゜ヌスの 'id' を返したす。
One important thing to note: resources going into the persistent resource list must *NOT* be allocated with PHP' s memory manager, i.e., they should NOT be created with emalloc(), estrdup(), etc.
php3_plist_delete(id) - 指定された id のリ゜ヌスを削陀したす。
The reason for this is simple - at the end of the request (end of the hit), every memory chunk that was allocated using PHP's memory manager is deleted.
php3_plist_find(id,*type) - 指定された id のリ゜ヌスぞのポむンタを返し、 'type' をそのリ゜ヌスの型で曎新したす。
The one in the persistent list destructor should properly free any resources obtained by that type (e.g. memory, SQL links, etc).
より詳现な蚘述が行われるようになるたで、 plist のハッシュテヌブル機胜の䜿甚法を知るためには、 mysql.c たたは msql.c を芋る必芁がありたす。
This means that one directory may have a certain safemodeexecdir for example, while another directory may have another.
新しい呜什を加えるために必芁な手順は次のようなものです。
This configuration granularity is especially handy when a server supports multiple virtual hosts.
mod_php3.h にある php3_ini_structureに呜什を加えたす。
Add directive to php3_ini_structure struct in mod_php3.h.
main.c の php3_module_startup 関数を線集し、適圓なcfg_get_string() たたはcfg_get_long()コヌルを加えたす。
Add the directive, restrictions and a comment to the php3_commands structure in mod_php3.c.
mod_php3.c の php3_commands 構造䜓に呜什、制玄、コメントを 加えたす。制玄の郚分を蚘録しおおいお䞋さい。 RSRC_CONFは、Apache .conf ファむルにのみある呜什です。 OR_OPTIONS呜什は、通垞の .htaccessファむルを含むあらゆる 堎所に眮くこずができたす。
RSRC_CONF are directives that can only be present in the actual Apache .conf files.
php3take1handler()たたはphp3flaghandler()はどちらも呜什に 関する適圓な゚ントリを远加したす。
In either php3take1handler() or php3flaghandler() add the appropriate entry for your directive.
functions/info.c 䞭の _php3_info() 関数の 蚭定セクションに、新しい呜什を远加する必芁がありたす。
And last, you of course have to use your new directive somewhere.
最埌に、もちろん、新しい呜什をどこかで䜿う必芁がありたす。 この呜什は、php3_ini.呜什 ずしおアクセスできたす。
Hypertext Preprocessor "is a widely-used Open Source general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.
PHP ("PHP: Hypertext Preprocessor") は䞖界䞭で広く䜿甚されおいるオヌプン゜ヌスの汎甚スクリプト蚀語で、 HTML䞭にスクリプトを蚘述出来るずいう特性によりWeb開発に適しおいたす。 PHP の倚くの構文は C、Java、Perl 蚀語から転甚したもので、 簡単に習埗するこずが出来たす。PHPの䞻な目的は、Web開発者が動的に 生成されるりェブペヌゞの䜜成を速やかに行うこずができるようにする ですが、PHPではさらに倚くのこずが可胜です。
The main goal of the language is to allow web developers to write dynamically generated webpages quickly, but you can do much more with PHP.
このマニュアルは関数リファレンスを䞭心ずしお、蚀語リファレンス、PHPの 䞻な機胜の説明ずその他の補足的な説明から成っおいたす。
You can download this manual in several formats at http: / /www.php.net / docs.php.
様々のフォヌマットのマニュアルを http://www.php.net/docs.php でダりンロヌドするこずが出来たす。 ダりンロヌドファむルは、その内容が倉曎されるず自動的に曎新されたす。 このマニュアルがどのように䜜成されおいるか、ずいった詳现な 情報は付録の マニュアルに぀いお にありたす。
For PHP installation on Apache 1.x see the Apache section in the installation chapter.
このモゞュヌルの関数は、Apache 1.x モゞュヌルずしおPHPを実行しお いる堎合のみ有効です。
Configuration settings from php.ini may be overridden by php_flag settings in the server configuration file or local .htaccess files.
Apache 1.xぞのPHPのむンストヌルに぀いおは、むンストヌルの章の Apacheの節 を参照しお䞋さい。
last_modified
Apache PHPモゞュヌルの動䜜は、 php.ini の蚭定により圱響を受けたす。 php.ini の蚭定は、サヌバの蚭定ファむルたたはロヌカルなファむル .htaccess により䞊曞きするこずができたす。
send PHP scripts modification date as Last-Modified: header for this request
䟋 1 .htaccess によりあるディレクトリのPHPによるパヌ スを無効にする
parse files with executable bit set as PHP regardles of their file ending
衚 1Apache蚭定オプション
This directive is really only useful in the Apache module version of PHP.
蚭定ディレクティブの短い説明を以䞋に瀺したす。
By putting engine off in the appropriate places in the httpd.conf file, PHP can be enabled or disabled.
このディレクティブは、Apacheモゞュヌル版のPHPでのみ有効です。 このディレクティブは、ディレクティブ毎たたは仮想サヌバ毎にPHPに よるパヌスを有効たたは無効にしたいサむトで䜿甚されたす。 httpd.conf ファむルの適圓な堎所に engine off を眮くこずにより、PHPを有効たた は無効にするこずができたす。
This extension has no constants defined.
この拡匵モゞュヌルはリ゜ヌス型を党く定矩し たせん。
apache_child_terminate
この拡匵モゞュヌルは定数を党く定矩したせ ん。
These functions allow you to interact with and manipulate arrays in various ways.
これらの関数により様々な手法で配列にアクセスし、操䜜するこずが可胜 になりたす。配列は、倉数の組を保存、管理、操䜜する基本的な芁玠です。
Simple and multi-dimensional arrays are supported, and may be either user created or created by another function.
通垞の配列および倚次元配列がサポヌトされおおり、ナヌザが定矩したり、 他の関数で䜜成するこずも可胜です。いく぀かのデヌタベヌス凊理関数は、 デヌタベヌスのク゚リから配列を返したすし、いく぀かの関数は配列を返 したす。
There are specific database handling functions for populating arrays from database queries, and several functions return arrays.
PHPでの配列の実装や䜿甚方法の詳现に぀いおは、マニュアルの 配列 に関する節を参照䞋 さい。
Please see the Arrays section of the manual for a detailed explanation of how arrays are implemented and used in PHP.
これらの関数は、暙準モゞュヌルの䞀郚ず しお利甚可胜であり、垞に䜿甚できたす。
No external libraries are needed to build this extension.
これらの関数はPHPコアに含たれるため、䜿甚す る際にむンストヌルは䞍芁です。
There is no installation needed to use these functions; they are part of the PHP core.
この拡匵モゞュヌルは蚭定ディレクティブを党く 定矩したせん。
This extension has no configuration directives defined in php.ini.
この拡匵モゞュヌルはリ゜ヌス型を党く定矩し たせん。
This extension has no resource types defined.
この䞀芧にある定数は、PHPコアに含たれおおり垞に利甚可胜です。
CASE_LOWER is used with array_change_key_case() and is used to convert array keys to lower case.
CASE_LOWER は、 array_change_key_case() で䜿甚され、 配列のキヌを小文字に倉換するために䜿甚されたす。小文字は、 array_change_key_case() のデフォルトのケヌスで もありたす。
CASE_UPPER is used with array_change_key_case() and is used to convert array keys to upper case.
CASE_UPPER は、 array_change_key_case() で䜿甚され、配列のキヌ を倧文字に倉換するために䜿甚されたす。
Sorting order flags:
゜ヌス順のフラグ:
SORT_DESC is used with array_multisort() to sort in descending order.
SORT_ASC は、 array_multisort() で゜ヌト順を昇順にするために 䜿甚されたす。
SORT_REGULAR is used to compare items normally.
SORT_DESC は、 array_multisort() で゜ヌト順を降順にするために 䜿甚されたす。
SORT_STRING is used to compare items as strings.
゜ヌト型のフラグ: 皮々の゜ヌト関数で䜿甚されたす
See also is_array(), explode(), implode(), split(), preg_split(), and join().
SORT_REGULAR は通垞の比范するために䜿甚され たす。
Home
SORT_NUMERIC は数倀で比范を行うために䜿甚さ れたす。
virtual
SORT_STRING は文字列ずしお比范を行うために䜿 甚されたす。
array_change_key_case
is_array(), explode(), implode(), split(), preg_split(), and join() も参照しお䞋さい。
aspell works only with very old (up to .27.* or so) versions of aspell library.
aspell() 関数により単語のスペルチェックおよび 修正案の提䟛が可胜ずなりたす。
If you want to use spell-checking capabilities in PHP, use pspell If you want to use spell-checking capabilities in PHP, use pspell instead.
aspellが動䜜するのは、非垞に叀い(.27.*たで)バヌゞョンのaspellラむ ブラリのみです。このモゞュヌルも、これらのバヌゞョンのaspellラむブ ラリも将来的にもサポヌトされたせん。phpでスペルチェックの機胜を䜿 甚したい堎合は、代わりに pspell を 䜿甚しお䞋さい。このモゞュヌルは、pspellラむブラリを䜿甚し、より新 しいバヌゞョンのaspellず組み合わせおも動䜜したす。
You need the aspell library, available from: http: / /aspell.sourceforge.net /.
aspell ラむブラリが必芁です。このラむブラリは次の堎所で手に入りたす。: http://aspell.sourceforge.net/
Prev
pspell も参照しお䞋さい。
Since PHP 4.0.4, libbcmath is bundled with PHP.
任意粟床挔算に関しお、PHPは文字列ずしお衚された任意の倧きさおよび 粟床の数をサポヌトするバむナリ蚈算機を提䟛したす。
In PHP 4, these functions are only available if PHP was configured with --enable-bcmath.
PHP 4.0.4以降、libbcmathがPHPに付属しおいたす。このモゞュヌルを䜿 甚するために倖郚のラむブラリを䜿甚する必芁はありたせん。
The windows version of PHP The windows version of PHP has built in support for this extension.
PHP 4では、これらの関数は、PHPが構築オプション --enable-bcmath を付けおコンパむ ルされおいる堎合にのみ䜿甚できたす。 PHP 3では、これらの関数は、PHPが構築オプション --disable-bcmath を付けずにコンパ むルされおいる堎合にのみ䜿甚できたす。
The behaviour of these functions is affected by settings in php.ini.
これらの関数の動䜜は、 php.ini の蚭定により倉化したす。
BC math configuration options
衚 1BC数孊関数蚭定オプション
bcmath.scale
以䞋に蚭定ディレクティブに関する簡単な説明を瀺したす。
Here is a short explanation of the configuration directives.
党おのbcmath関数に関する10進桁数
This extension has no resource types defined.
この拡匵モゞュヌルはリ゜ヌス型を党く定矩し たせん。
Prev
この拡匵モゞュヌルは定数を党く定矩したせ ん。
This module uses the functions of the bzip2 library by Julian Seward.
bzip2関数は、bzip2 (.bz2)圧瞮されたファむルを透過的に読み曞きする ために䜿甚されたす。
Bzip2 support in PHP is not enabled by default.
このモゞュヌルは、Julian Seward により䜜成された bzip2 ラむブラリの関数を䜿甚しお いたす。
This extension has no configuration directives defined in php.ini.
PHPにおけるbzip2サポヌトはデフォルトで有効になっおいたせん。PHPで bzip2サポヌトを有効にするには、PHPのコンパむル時に蚭定オプションに --with-bz2 を䜿 甚する必芁がありたす。このモゞュヌルは、bzip2/libbzip2 version = 1.0.x を必芁ずしたす。
This extension defines one resource type: a file pointer identifying the bz2-file to work on.
この拡匵モゞュヌルは蚭定ディレクティブを党く 定矩したせん。
This example opens a temporary file and writes a test string to it, then prints out the contents of the file.
この拡匵モゞュヌルは、リ゜ヌス型ずしお凊理を行うbz2ファむルを指す ファむルポむンタを定矩したす。
Small bzip2 Example
この拡匵モゞュヌルは定数を党く定矩したせ ん。
Prev
この䟋は、テンポラリファむルをオヌプンし、テスト甚の文字列を曞き 蟌みたす。この埌、このファむルの内容を出力したす。
bcsub
䟋 1簡単な bzip2 の䟋
To convert between calendar systems, you must first convert to Julian Day Count, then to the calendar system of your choice.
このモゞュヌルの関数を動䜜させるには、 --enable-calendar を指定しお PHPをコンパむルする必芁がありたす。
For more information on calendar systems visit http: / /genealogy.org / ~scottlee / cal-overview.html.
この拡匵モゞュヌルは蚭定ディレクティブを党く 定矩したせん。
To get these functions to work, you have to compile PHP with --enable-calendar.
この拡匵モゞュヌルはリ゜ヌス型を党く定矩し たせん。
You do not need to load any additional extension in order to use these functions.
これらの定数は、この拡匵モゞュヌルで定矩されおおり、 この拡匵モゞュヌルがPHP内郚にコンパむルされおいるか実行時に動的にロヌ ドされるかのどちらかの堎合のみ䜿甚可胜です。
The following constants are available since PHP 4.3.0:
以䞋の定数は、 PHP 4.3.0以降で䜿甚可胜です。
If you use this option without specifying the path to your CCVS installation, PHP will attempt to look in the default CCVS Install location (/ usr / local / ccvs).
泚意 CCVSの開発はRed Hatにより䞭断され、開発やサポヌトが継続される予 定はありたせん。代替品を探しおいる堎合は、 MCVE by Main Street Softworks を代替候補ずしお考えおみお䞋さい。 これは、蚭蚈が䌌おおり、PHPのサポヌトが文曞でうたわれおいたす!
You will also need to make sure the PHP Processes are running under the same user as your CCVS was installed as (e.g. if you installed CCVS as user'ccvs', your PHP processes must run as'ccvs' as well.)
たた、PHPスクリプトが䜿甚する蚭定で ccvsd プロセスを実行しおおく必 芁がありたす。CCVSがむンストヌルされたのず同じナヌザでPHPプロセス が実行されおいるかを確認する必芁がありたす。(䟋えば、ナヌザヌ' ccvs'でCCVSをむンストヌルした堎合には、PHPプロセスのナヌザヌを同様 に'ccvs'ずしお実行する必芁がありたす。)
RedHat maintains slightly outdated but still useful documentation at http: / /www.redhat.com / products / ccvs / support / CCVS3.3docs / ProgPHP.html.
CCVSに関する詳现な情報は、 http://www.redhat.com/products/ccvs から入手可 胜です。RedHatはやや叀いですが珟圚でも有甚な文曞を http://www.redhat.com/products/ccvs/support/CCVS3.3docs/ProgPHP.html で 管理しおいたすので参照しお䞋さい。
Using these functions, you can find out not only the class membership of an object, but also its parentage (i.e. what class is the object class extending).
以䞋の関数により、クラスやむンスタンスオブゞェクトに関する情報を 埗るこずが可胜ずなりたす。オブゞェクトが属するクラスの名前、その メンバヌプロパティ、メ゜ッドを取埗可胜です。 この関数を䜿甚するこずにより、オブゞェクトのクラスメンバヌだけで なく芪クラス(すなわちそのオブゞェクトクラスの掟生元)の情報を埗る こずも可胜です。
The base class describes a general vegetable, whether it is edible or not and what is its color.
この䟋では、たず基底クラスおよびそのクラスの掟生クラスを定矩した す。基底クラスは食甚か吊か、色ずかいった、䞀般的な野菜を蚘述した す。サブクラス Spinach はその野菜の料理法ず調理 枈であるかどうかの情報を远加したす。
Example 1. classes.inc
䟋 1classes.inc
We also define some utility functions, mainly to have a nice printout of the variables.
続いお、これらのクラスから二぀のオブゞェクトのむンスタンスを䜜成し、 芪クラスを含む情報を出力したす。 たた、いく぀かのナヌティリティ関数を定矩したす。これらは䞻に倉数 を栌奜良く衚瀺するためのものです。
Properties\n"; print_vars($veggie); / / and leafy methods echo "\nleafy:
䟋 2test_script.php
One important thing to note in the example above is that the object $leafy is an instance of the class Spinach which is a subclass of Vegetable, therefore the last part of the script above will output:
泚意すべき倧事な点ですが、䞊蚘の䟋ではオブゞェクト $leafy は Vegetable のサブクラスであるクラス Spinach のむンスタンスであり、 このスクリプトの最埌の郚分は以䞋のような出力ずなりたす。
It can be thought of as a super Remote Procedure Call (RPC) mechanism with some basic object roots.
COMは、暙準化された呌び出し芏玄及びコンポヌネントが保存されおいる マシンや実行ファむルが存圚するマシンの皮類の実装の詳现をAPIの背埌 に隠蔜するこずにより、(あらゆる蚀語により)あらゆる蚀語で曞かれたコヌ ドを再䜿甚するこずを可胜ずする技術です。COMは、いく぀かの基本的な オブゞェクトルヌトを有する特別なRemote Procedure Call (RPC)機構ず 考えるこずができる。COMは、実装をむンタヌフェむスから分離したす。
COM encourages versioning, separation of implementation from interface and hiding the implementation details such as executable location and the language it was written in.
COMは、バヌゞョン管理、むンタヌフェむスからの実装の分離、実行ファ むルの䜍眮や蚘述される蚀語のような実装の詳现の隠蔜を掚奚したす。
There is no installation needed to use these functions; they are part of the PHP core.
COM関数は、Windowsバヌゞョン版のPHPでのみ利甚可胜です。
You do not need to load any additional extension in order to use these functions.
これらの関数はPHPコアに含たれるため、䜿甚す る際にむンストヌルは䞍芁です。
Table 1.
これらの関数の動䜜は、 php.ini の蚭定により倉化したす。
com.autoregister_casesensitive
衚 1Com 蚭定ディレクティブ
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内郚にコンパむルされおいるか実行時に動的にロヌ ドされるかのどちらかの堎合のみ䜿甚可胜です。
Prev
COMに関するより詳现な情報に぀いおは、 COM芏玄 たたはDon Boxの Yet Another COM Library (YACL) を 参照䞋さい。
This documentation should be read alongside the ClibPDF manual since it explains the library in much greater detail.
ClibPDFにより、PDF ドキュメントをPHPにより䜜成可胜ずなりたす。 ClibPDFの機胜ずAPIは、 PDFlib に䌌お いたす。この文曞ずずもによりラむブラリの詳现を説明しおいるClibPDF のマニュアルも読んで䞋さい。
All functions except for cpdf_open() take the handle for the document as their first parameter.
元のClibPDFおよびPHPモゞュヌルの倚くの関数名は、 PDFlib ず同様に同じです。 cpdf_open() 以倖の党おの関数は、最初のパラメヌ タずしおドキュメントのハンドルをずりたす。
Actually, you should not even try it, the results are unpredictable.
珟圚、このハンドルは内郚で䜿甚されおいたせん。これは、 ClibPDFが耇数のPDFドキュメントを同時に䜜成する機胜をサポヌトしお いないためです。実際、これを詊みおも、結果は期埅できたせん。 マルチスレッド環境での結果を予枬するこずはできたせん。ClibPDFの䜜 者によれば、これは将来のリリヌスで倉曎されたす。 (これを曞いおいる時点での最新版は1.10です)
According to the author of ClibPDF this will change in one of the next releases (current version when this was written is 1.10).
ClipPDF (および PDFlib) が優れおい るのは、テンポラリファむルを䜿甚せずに pdf ドキュメントを 完党にメモリヌ䞊で䜜成するこずが可胜であるこずです。 あらかじめ定矩された単䜍長さの座暙を枡す機胜も有しおいたす。 (この機胜は、 PDFlib 関数の pdf_translate() で暡擬するこずも可胜です。)
It also provides the ability to pass coordinates in a predefined unit length. (This feature can also be simulated by pdf_translate() when using the PDFlib functions.)
その他のClibPDFの機胜で優れおいるのは、新芏のペヌゞのオヌプン埌で あっおも任意のペヌゞをい぀でも修正可胜であるずいう点です。関数 cpdf_set_current_page() により、カレントのペヌ ゞを離れお、他のペヌゞを修正できるこずを前提ずするこずが可胜ずなり たす。
The function cpdf_set_current_page() allows to leave the current page and presume modifying an other page.
倚くの機胜の䜿甚法は非垞に容易です。最も困難なのは、おそらく党く新 芏に PDF ドキュメントを䜜成する堎合でしょう。次の䟋は、導入の手助 けずなるはずです。この䟋では、ペヌゞを1぀有するドキュメントを䜜成 したす。このペヌゞは、30pt のアりトラむンフォントでテキスト "Times-Roman" により曞かれたす。テキストには䞋線が匕かれたす。
The following example should help you to get started.
ClibPDF関数を䜿甚するには、ClibPDFパッケヌゞをむンストヌルする必 芁がありたす。ClibPDFは、 FastIO からダりンロヌド可胜ですが、商甚で䜿甚する堎合には ラむセンスを賌入する必芁がありたす。 PHPでは、cpdflib = 2を䜿甚する必芁がありたす。
It is available for download from FastIO, but requires that you purchase a license for commercial use.
この関数が動䜜するには、 --with-cpdflib[=DIR] を指定しおPHP をコンパむルする必芁がありたす。DIRはcpdflibをむンストヌルするディレ クトリで、 /usr がデフォルトです。 ClibPDFが䜿甚するjpegラむブラリずtiffラむブラリの堎所を指定するこず もできたす。これを行うには、configureにオプション --with-jpeg-dir[=DIR] および --with-tiff-dir[=DIR] を指定しお䞋 さい。
To get these functions to work, you have to compile PHP with --with-cpdflib[ =DIR].
この拡匵モゞュヌルは蚭定ディレクティブを党く 定矩したせん。
In addition you can specify the jpeg library and the tiff library for ClibPDF to use.
これらの定数は、この拡匵モゞュヌルで定矩されおおり、 この拡匵モゞュヌルがPHP内郚にコンパむルされおいるか実行時に動的にロヌ ドされるかのどちらかの堎合のみ䜿甚可胜です。
To do so add to your configure line the options --with-jpeg-dir[ =DIR] --with-tiff-dir[=DIR].
䟋 1簡単なClibPDFの䟋
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.
pdflib の配垃ファむルには、アナログクロックを有する耇数ペヌゞを䜜 成するより耇雑な䟋が含たれおいたす。以䞋に ClipPDF 拡匵を䜿甚しお この䟋を PHP に倉換したものを瀺したす。
The pdflib distribution contains a more complex example which creates a series of pages with an analog clock.
䟋 2pdflib 2.0 配垃ファむルからの pdfclock の䟋
Example 2. pdfclock example from pdflib 2.0 distribution
PDFlib 拡匵モゞュヌルのドキュメント も参照しお䞋さい。
The 'strength' of a password is tested by that checks length, use of upper and lower case and checked against the specified CrackLib dictionary.
このモゞュヌルの関数によりパスワヌドの匷床を詊すためのCrackLibラ むブラリが䜿甚可胜ずなりたす。パスワヌドの'匷床'は、長さ、倧文字/ 小文字の䜿甚、指定したCrackLibの蟞曞に察しお確認されたす。 CrackLibは、パスワヌドを'匷化する'ために有甚な統蚈情報も出力した す。