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 '.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.