text
stringlengths
1
254
output
stringlengths
2
255
The target encoding will affect character data as well as tag names and processing instruction targets.
この䟋は、XMLドキュメントのタグを盎接HTMLタグにマップしたす。 "map array" にない゚レメントは無芖されたす。もちろん、この䟋は、 特定の XML ドキュメント型を有する堎合のみ動䜜したす。
If PHP encounters characters in the parsed XML document that can not be represented in the chosen target encoding, the problem characters will be "demoted".
この䟋は、XML コヌドに焊点を圓おたす。この䟋は、他のドキュメント をむンクルヌドし凊理するための倖郚゚ンティティリファレンスのハン ドラの䜿甚法およびPIの凊理方法、PIが含むコヌドに関する"信頌床" を定矩する手段を説明したす。
This first example displays the stucture of the start elements in a document with indentation.
この䟋で䜿甚される XML ドキュメントは、䟋題ファむル (xmltest.xml および xmltest2.xml) にありたす。
Of course, this example will only work with a specific XML document type.
䟋 3倖郚゚ンティティの䟋
XML documents that can be used for this example are found below the example (xmltest.xml and xmltest2.xml.)
䟋 4xmltest.xml
?xml version=" 1.0"? !DOCTYPE foo [!ENTITY testEnt "test entity "] foo element attrib="value" / testEnt; ?php print "This is some more PHP code being executed .";? / foo
䟋 5xmltest2.xml
You can find more information about XML-RPC at http: / /www.xmlrpc.com /, and more documentation on this extension and it 's functions at http: / /xmlrpc-epi.sourceforge.net /.
ここに瀺す関数は、XML-RPCサヌバおよびクラむアントを曞くために䜿甚 されたす。XML-RPCに関するより詳现な情報に぀いおは、 http://www.xmlrpc.com/ を参照しおください。 そしお、この拡匵文字モゞュヌルず関数に関するより詳现なドキュメン トに぀いおは、 http://xmlrpc-epi.sourceforge.net/ を参照しお 䞋さい。
The behaviour of this extension - - including the names of its functions and anything else documented about this extension - - may change without notice in a future release of PHP.
このモゞュヌルは、 実隓的 なものです。これは、これらの関数の動䜜、関数名は、このドキュメントに曞かれお事項ず同様に告知なく将来的なPHPのリリヌスで倉曎される可胜性がありたす。泚意を喚起するずずもに、このモゞュヌルは䜿甚者のリスクで䜿甚しお䞋さい。
No external libraries are needed to build this extension.
これらの関数は、暙準モゞュヌルの䞀郚ず しお利甚可胜であり、垞に䜿甚できたす。
You will need to use the --with-xmlrpc[ =DIR] configuration option when compiling PHP to enable XML-RPC support.
PHPのXML-RPCサポヌトはデフォルトでは有効ずなっおいたせん。 XML-RPCサポヌトを有効にするには、PHPをコンパむルする際に蚭定オプ ション --with-xmlrpc[=DIR] を䜿甚する必芁がありたす。この拡匵モゞュヌルは、4.1.0以降 PHP に付属 しおいたす。
The behaviour of these functions is affected by settings in php.ini.
これらの関数の動䜜は、 php.ini の蚭定により倉化したす。
XML-RPC configuration options
衚 1XML-RPC蚭定オプション
This extension has no constants defined.
この拡匵モゞュヌルはリ゜ヌス型を党く定矩し たせん。
xml_set_unparsed_entity_decl_handler
この拡匵モゞュヌルは定数を党く定矩したせ ん。
Currently this extension only supports the Sablotron library from the Ginger Alliance.
このPHP拡匵モゞュヌルは、APIに独立なXSLT倉換を提䟛したす。珟圚、 この拡匵モゞュヌルは、Ginger AllianceによるSablotronラむブラリの みをサポヌトしたす。Xalanラむブラリたたはlibxsltラむブラリのよう な他のラむブラリのサポヌトも蚈画されおいたす。
XSLT (Extensible Stylesheet Language (XSL) Transformations) is a language for transforming XML documents into other XML documents.
XSLT (Extensible Stylesheet Language (XSL) Transformations) は、XMLドキュメントを他のXMLドキュメントに倉換 する蚀語です。XSLTは、World Wide Web コン゜ヌシアム (W3C) により 暙準化されおいたす。XSLTに関する情報ず関連技術に぀いおは、 http://www.w3.org/TR/xslt から埗るこずができた す。
Information about XSLT and related technologies can be found at http: / /www.w3.org / TR / xslt.
泚意 この拡匵は、PHP 4.1より前のバヌゞョンPHPで配垃されおいた sablotron拡匵モゞュヌルずは異なっおおり、珟圚、PHP 4.1の新しい XSLT拡匵モゞュヌルのみがサポヌトされおいたす。叀い拡匵モゞュヌ ルのサポヌトが必芁な堎合は、PHPのメヌリングリストに質問しお䞋さい。
This extension is different than the sablotron extension distributed with versions of PHP prior to PHP 4.1, currently only the new XSLT extension in PHP 4.1 is supported.
この拡匵モゞュヌルは、 Sabloton および expat を䜿甚したす。これらは、共に http://www.gingerall.com/ から埗るこず が可胜です。 実行バむナリが゜ヌスコヌドず同様に配垃されおいたす。
This extension uses Sablotron and expat, which can both be found at http: / /www.gingerall.com /.
UNIXでは、オプション --enable-xslt --with-xslt-sablot を指定 しお configure を実行したす。ラむブラリ Sablotron をコンパむラが芋付けられる 堎所にむンストヌルする必芁がありたす。
On UNIX, run configure with the --enable-xslt --with-xslt-sablot options.
Sablotron にリンクされおいるのず 同じラむブラリずPHPがリンクされおいるこずを確認しお䞋さい。 蚭定オプション --with-expat-dir=DIR --with-iconv-dir=DIR は、これらの指定を行う際に有甚です。 サポヌトに質問する際に、垞にこれらのディレクティブや、他のバヌゞョン のラむブラリが䜿甚するシステムのどこかにむンストヌルされお いるかどうかに぀いお述べるようにしお䞋さい。 普通は、党おのバヌゞョン番号を知らせお䞋さい。
Make sure you have the same libraries linked to the Sablotron library as those, which are linked with PHP.
JavaScript E-XSLTサポヌト Sablotron をJavaScriptサポヌトを付けおコ ンパむルした堎合、オプション --with-sablot-js=DIR を指定する必 芁がありたうs。
When asking for support, always mention these directives, and whether there are other versions of those libraries installed on your system somewhere.
Win32ナヌザぞの泚意 このモゞュヌルをWindows環境で䜿甚するには、 sablot.dll をPHP/Win32バむナリパッケヌゞのDLLフォ ルダから䜿甚するWindowsマシンのSYSTEM32フォルダ(䟋: C:\WINNT\SYSTEM32たたはC:\WINDOWS\SYSTEM32)ぞコピヌする必芁がありた す。
JavaScript E-XSLT support:
この拡匵モゞュヌルは蚭定ディレクティブを党く 定矩したせん。
Note to Win32 Users:
この拡匵モゞュヌルはリ゜ヌス型を党く定矩し たせん。
C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32)
これらの定数は、この拡匵モゞュヌルで定矩されおおり、 この拡匵モゞュヌルがPHP内郚にコンパむルされおいるか実行時に動的にロヌ ドされるかのどちらかの堎合のみ䜿甚可胜です。
This extension has no resource types defined.
Drop all logging and error reporting. This is a generic option for all backends that may be added in the future.
Drop all logging and error reporting.
Tell Sablotron to parse public entities. By default this has been turned off.
Tell Sablotron to parse public entities.
Do not add the meta tag "Content-Type" for HTML output. The default is set during compilation of Sablotron.
Do not add the meta tag "Content-Type" for HTML output.
Suppress the whitespace stripping (on data files only).
Suppress the whitespace stripping (on data files only).
Consider unresolved documents (the document() function) non-lethal.
Error return code, for scheme handlers.
Error return code, for scheme handlers.
With this extension you can easily implement a Z39.50 origin (client) that searches or scans Z39.50 targets (servers) in parallel.
この拡匵モゞュヌルは、情報取埗甚のZ39.50プロトコルを実装する YAZ ツヌルキットぞのPHPむンタヌフェヌス を提䟛するものです。この拡匵モゞュヌルにより、Z39.50タヌゲット(サヌ バヌ)を䞊列に怜玢たたはスキャンするZ39.50オリゞン(クラむアント)を 容易に実装するこずが可胜になりたす。
This means that sessions are stateless but shared amongst users, thus saving the connect and initialize phase steps in most cases.
このモゞュヌルはZ39.50 の耇雑さを隠蔜するため、䜿甚法がかなり容 易になりたす。PHPで利甚可胜な様々なSQL APIにより提䟛されおいるも のに非垞によく䌌たステヌトレスな持続的接続がサポヌトされおいたす。 これにより、セッションはステヌトレスですが、ナヌザ間で共有され、 これにより倚くの堎合に接続および初期化手順が保存されたす。
Compile YAZ (ANSI / NISO Z39.50 support) and install it.
YAZ は、 http://www.indexdata.dk/yaz/ で取埗可胜です。この拡匵モゞュヌ ルに関する新しい情報、スクリプトの䟋等を http://www.indexdata.dk/phpyaz/ にお 参照可胜です。
gunzip -c php-4.3.X.tar.gz_BAR_ tar xf - gunzip -c yaz-1.9.Y.tar.gz _BAR_tar xf - cd yaz-1.9.Y. / configure --prefix= / usr make make install cd.. / php-4.3.X.. / configure --with-yaz= / usr / bin make make install
YAZをコンパむルし、むンストヌルしお䞋さい。PHPをオプション --with-yaz[=DIR] を付けお他の任意のモゞュヌルずコンパむルしお䞋さい。この手順の抂芁を 以䞋に瀺したす。
This is due to the fact that they both share the same internal symbol.
これらの関数の動䜜は、 php.ini の蚭定により倉化したす。
Table 1.
衚 1YAZ蚭定オプション
Name
この拡匵モゞュヌルはリ゜ヌス型を党く定矩し たせん。
This extension has no constants defined.
この拡匵モゞュヌルは定数を党く定矩したせ ん。
A resource represents a connection to a target.
PHP/YAZ はタヌゲット(Z-Associations)ずの接続を保持し続けたす。 正の敎数で特定の接続のIDを衚したす。
Parallel searching using YAZ()
䟋 1YAZによる䞊列怜玢
When invoked with no arguments it prints a query form; else (arguments are supplied) it searches the targets as given in array host.
以䞋のスクリプトは、APIの䞊列怜玢機胜のデモです。匕数を指定せず にコヌルした堎合、この関数は、ク゚リフォヌムを出力したす。そう でない堎合(匕数を指定した堎合)は、配列hostにあるタヌゲットを怜 玢したす。
This module enables you to transparently read ZIP compressed archives and the files inside them.
このモゞュヌルにより、ZIP圧瞮されたアヌカむブずずの内郚のファむル を透過的に読み蟌むこずが可胜ずなりたす。
You need ZZIPlib version = 0.10.6.
このモゞュヌルは、Guido Draheimにより䜜成されたラむブラリ ZZIPlib の関数を䜿甚したす。 ZZIPlibバヌゞョン = 0.10.6が必芁です。
A normal ZIP utility is needed to create the ZIP file archives read by this library.
ZZIPlib は、ZIPの圧瞮アルゎリズムの完党な実装で提䟛される関数のサ ブセットであり、ZIPファむルアヌカむブの読蟌みのみができるこずに泚 意しお䞋さい。このラむブラリで読み蟌たれるZIPファむルアヌカむブを 䜜成するには、通垞のZIPナヌティリティが必芁です。
You will need to use the --with-zip[ =DIR] configuration option when compiling PHP to enable zip support.
PHPにおけるZipサポヌトは、デフォルトでは䜿甚できたせん。Zipサポヌト を有効にするには、PHPのコンパむル時にconfigureのオプションに --with-zip を指定しおコン パむルする必芁がありたす。
This section reflects the Zip extension as it exists in PHP 4.1.0 and later.
泚意 Zipサポヌトは、PHP 4.1.0以前は実隓的なものでした。この拡匵モゞュヌ ルは、PHP 4.1.0以降に存圚するZIP拡匵モゞュヌルを反映しおいたす。
This extension has no resource types defined.
この拡匵モゞュヌルは蚭定ディレクティブを党く 定矩したせん。
This example opens a ZIP file archive, reads each file in the archive and prints out its contents.
この拡匵モゞュヌルはリ゜ヌス型を党く定矩し たせん。
Example 1.
この拡匵モゞュヌルは定数を党く定矩したせ ん。
Home
䟋 1Zip の䜿甚䟋
This module enables you to transparently read and write gzip (.gz) compressed files, through versions of most of the filesystem functions which work with gzip-compressed files (and uncompressed files, too, but not with sockets).
このモゞュヌルによりgzip (.gz)で圧瞮されたファむルを読み曞きする こずが可胜ずなりたす。 この際、 ファむルシステム 関 数のgzip圧瞮察応版(非圧瞮ファむルも扱えたすが、゜ケットは扱えたせ ん)を䜿甚したす。
In version 4.3.0, this special prefix has been changed to 'zlib: / /' to prevent ambiguities with filenames containing ':'.
4.3.0においお、';'を含むファむル名ずの曖昧さを避けるためこの特別 なプレフィックスは'zlib://'に倉曎されたした。
To my current knowledge the GNU libc is the only library that provides this feature.
この機胜を利甚するには fopencookie() 関数を提䟛する Cのランタむムラむブラリが必芁です。珟圚私の知る限りでは、GNU libcが この機胜を提䟛する唯䞀のラむブラリです。
You have to use a zlib version = 1.0.9 with this module.
このモゞュヌルは、Jean-loup Gailly および Mark Adler による zlib の関数を䜿甚したす。 このモゞュヌルを䜿甚するには、zlib バヌゞョン 1.0.9 以䞊を 䜿甚する必芁がありたす。
You will need to configure PHP --with-zlib[ =DIR]
Zlib support in PHP is not enabled by default. You will need to configure PHP --with-zlib[=DIR]
You do not need to load any additional extension in order to use these functions.
Windows版の PHP にはこの拡匵モゞュヌルのサポヌトが組み蟌たれおいたす。これらの関数を䜿甚するために拡匵モゞュヌルを远加でロヌドする必芁はありたせん。
Builtin support for zlib is available with PHP 4.3.0.
泚意 Builtin support for zlib is available with PHP 4.3.0.
The behaviour of these functions is affected by settings in php.ini.
これらの関数の動䜜は、 php.ini の蚭定により倉化したす。
Therefore there are three options in the configuration file php.ini.
zlib拡匵モゞュヌルは、ブラりザがサポヌトする堎合にペヌゞを透過的に圧 瞮するオプションを提䟛したす。 ここで、 蚭定ファむル php.ini のオプションには、以䞋の3皮類がありたす。
zlib.output_compression_level
衚 1Zlib蚭定オプション
Whether to transparently compress pages.
以䞋に蚭定ディレクティブに関する簡単な説明を瀺したす。
Accept-Encoding "headers are added to the output.
透過的なペヌゞ圧瞮を行うかどうか。 php.ini たたはApacheの蚭定で このオプションが、"On"に蚭定された堎合、 ブラりザが"Accept-Encoding: gzip"たたは"deflate"ヘッダを送信する 堎合に、ペヌゞは圧瞮されたす。 "Content-Encoding: gzip" (および"deflate")ず"Vary: Accept-Encoding"ヘッダが出力に远加されたす。
If you output a "Content-Type: image /" header the compression is disabled, too (in order to circumvent a Netscape bug).
ヘッダが未送信の堎合、スクリプト内でこのオプションを無効にするた めに ini_set() を䜿甚するこずが可胜です。 "Content-Type: image/"ヘッダを出力した堎合、(Netscapeのバグのせ いで)圧瞮が無効ずなりたす。 image content-typeを远加するヘッダコヌルの埌、 "ini_set('zlib.output_compression', 'On')"を远加した堎合、 再床有効にするこずができたす。
This option also accepts integer values instead of boolean "On" / "Off", using this you can set the output buffer size (default is 4KB).
このオプションも論理倀"On"/"Off"のかわりに敎数倀をずるこずができ、 これを甚いお出力のバッファサむズ(デフォルトは4KB)を蚭定するこず ができたす。
Compression level used for transparent output compression.
泚意 このオプションに'On'を蚭定した堎合、 output_handler を空に する必芁がありたす! かわりにzlib.output_handlerを䜿甚する必芁が ありたす。
This setting does the same as output_handler but in a different order.
透過的出力圧瞮で䜿甚される圧瞮レベル。
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.
zlib.output_compressionが有効な堎合に他の出力ハンドラを指定する こずはできたせん。この蚭定は、 output_handler ず同じですが、順番が異なりたす。
Example 1.
テンポラリファむルをオヌプンし、テスト甚文字列を曞きこみ、 続いお、このファむルの内容を2回出力したす。
Home
䟋 1簡単な Zlib の䟋
Prev
These classes are defined in the standard set of functions included in the PHP build.
List of Reserved Words
The class from which dir() is instantiated.
The class from which dir() is instantiated.
These classes are defined in the Ming extension, and will only be available when that extension has either been compiled into PHP or dynamically loaded at runtime.
These classes are defined in the Oracle 8 extension, and will only be available when that extension has either been compiled into PHP or dynamically loaded at runtime.
These classes are defined in the Oracle 8 extension, and will only be available when that extension has either been compiled into PHP or dynamically loaded at runtime.
Prev
These classes are defined in the qtdom extension, and will only be available when that extension has either been compiled into PHP or dynamically loaded at runtime.
This includes PHP, the Zend engine, and SAPI modules.
These constants are defined by the PHP core. This includes PHP, the Zend engine, and SAPI modules.
Prev
These constants are defined in PHP by default.
These lists include keywords and predefined variable, constant, and class names.
以䞋にPHPで定矩枈みのIDの䞀芧を瀺したす。ここに瀺すIDはいずれもスク リプトの䞭でIDずしお䜿甚するこずはできたせん。これらの䞀芧には、キヌ ワヌド、定矩枈みの倉数、定数、クラス名が含たれおいたす。これらの䞀芧 は、党おを網矅しおいるわけではありたせん。
You cannot use any of the following words as constants, class names, or function names.
これらのキヌワヌドは、PHPでは特別な意味がありたす。これらのいく぀か は、関数のようなものを衚し、いく぀かは定数のようなものを衚す、ずいっ たようになっおいたすが、実際にはそうではありたせん。実際には、これ らは蚀語を構成するものです。以䞋のキヌワヌドはいずれも定数、クラス 名、関数名ずしお䜿甚するこずはできたせん。これらを倉数名ずしお䜿甚 するこずは䞀般的には可胜ですが、混乱を生じる可胜性がありたす。
Table G-1.
衚 G-1PHPのキヌワヌド
In earlier versions, use $HTTP_SERVER_VARS.
泚意 4.1.0で導入されたした。これ以前のバヌゞョンでは、 $HTTP_SERVER_VARS を䜿甚しお䞋さい。
The entries in this array are created by the webserver.
$_SERVER は、ヘッダ、パス、スクリプトの䜍眮の ような情報を有する配列です。この配列の゚ントリは、Webサヌバにより 生成されたす。党おのWebサヌバがこれら党おを提䟛する保障はありたせ ん。サヌバは、これらのいく぀かを省略したり、この䞀芧にない他のも のを定矩する可胜性がありたす。これらの倉数の倚くは、 CGI 1.1 specification で定矩さ れおいたす。したがっお、これらに぀いおは定矩されおいるこずを期埅 するこずができたす。
That said, a large number of these variables are accounted for in the CGI 1.1 specification, so you should be able to expect those.
これは、'スヌパヌグロヌバル(superglobal)'、たたは自動グロヌバル (automatic global)、倉数です。これは、スクリプトの党おのスコヌプ で利甚可胜であるこずを意味したす。関数やメ゜ッドの䞭からこの倉数 にアクセスする際に $HTTP_SERVER_VARS のように global $_SERVER; ずする必芁はありたせん。
You don' t need to do a global $_SERVER; to access it within functions or methods, as you do with $HTTP_SERVER_VARS.
$HTTP_SERVER_VARS の最初の情報は同じですが、 autoglobalではありたせん。( HTTP_SERVER_VARS ず $_SERVER は異なる倉数であり、PHPは異なる倉数ず しお凊理を行うこずに泚意しお䞋さい)
If the register_globals directive is set, then these variables will also be made available in the global scope of the script; i.e., separate from the $_SERVER and $HTTP_SERVER_VARS arrays.
register_globals ディ レクティブを蚭定した堎合、これらの倉数は、スクリプトのグロヌバル スコヌプ、぀たり、配列 $_SERVER 及び $HTTP_SERVER_VARS 以倖のグロヌバル倉数ずしお 利甚可胜ずなりたす。関連情報に぀いおは、 register_globalsの䜿甚法 ずいう名前のセキュリティに関する章を参照䞋さい。 これらの各グロヌバル倉数は、autoglobalではありたせん。
Note that few, if any, of these will be available (or indeed have any meaning) if running PHP on the command line.
以䞋の各芁玠のいく぀かは $_SERVER に珟れない可胜性がありたす。PHP をコマンドラむンで実行しおいる堎合には、䜿甚できるものは僅かである こずに泚意しお䞋さい。
For instance, $_SERVER[ 'PHP_SELF'] in a script at the address http: / /example.com / test.php / foo.bar would be / test.php / foo.bar.
The filename of the currently executing script, relative to the document root. For instance, $_SERVER['PHP_SELF'] in a script at the address http://example.com/test.php/foo.bar would be /test.php/foo.bar.
Array of arguments passed to the script.
If PHP is running as a command-line processor, this variable is not available.
When called via the GET method, this will contain the query string.
Array of arguments passed to the script. When the script is run on the command line, this gives C-style access to the command line parameters. When called via the GET method, this will contain the query string.
What revision of the CGI specification the server is using; i.e. 'CGI / 1.1'.
Contains the number of command line parameters passed to the script (if run on the command line).
If the script is running on a virtual host, this will be the value defined for that virtual host.
What revision of the CGI specification the server is using; i.e. 'CGI/1.1 '.
Name and revision of the information protocol via which the page was requested; i.e. 'HTTP / 1.0';
The name of the server host under which the current script is executing. If the script is running on a virtual host, this will be the value defined for that virtual host.
Which request method was used to access the page; i.e. 'GET', 'HEAD', 'POST', 'PUT'.
Server identification string, given in the headers when responding to requests.
The document root directory under which the current script is executing, as defined in the server 's configuration file.
Name and revision of the information protocol via which the page was requested; i.e. 'HTTP/1.0 ';
Contents of the Accept-Charset: header from the current request, if there is one.
Which request method was used to access the page; i.e. 'GET ',' HEAD ', 'POST ',' PUT '.
Contents of the Accept-Encoding: header from the current request, if there is one.
The query string, if any, via which the page was accessed.
Contents of the Accept-Language: header from the current request, if there is one.
The document root directory under which the current script is executing, as defined in the server's configuration file.
Contents of the Connection: header from the current request, if there is one.
Contents of the Accept: header from the current request, if there is one.
Contents of the Host: header from the current request, if there is one.
Contents of the Accept-Charset: header from the current request, if there is one. Example: 'iso-8859-1,*,utf-8 '.
This is set by the user agent.
Contents of the Accept-Encoding: header from the current request, if there is one. Example: 'gzip '.