text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
Using XML as a source format gives us the ability to generate many output formats from the source files, while only maintaining one source document for all formats.
|
ãã®ããã¥ã¢ã«ã¯XMLã§æžãããŠããŠã DocBook XML DTD ã DSSSL (Document Style and Semantics Specification Language)ããã©ãŒãããã«äœ¿çšããŠããŸãããŸããå®éšçã« XSLT (Extensible Stylesheet Language Transformations)ãã¡ã³ããã³ã¹ãšãã©ãŒããã㫠䜿çšããŠããŸãã
|
The manuals are updated automatically as the text is updated.
|
æ§ã
ãªèšèªã®ã(ããã¹ã圢åŒãã·ã³ãã«ãª HTML 圢åŒã PDF ãPalmPilot DOCãPalmPilot iSiloã Windows HTML Helpçãå«ã)æ§ã
ãªåœ¢åŒã®ææ°ã®ããã¥ã¢ã«ã http://www.php.net/docs.php ããããŠããŒã ããããšãã§ããŸããããã¥ã¢ã«ã¯ãã®å
容ã倿Žããããš èªåçã«æŽæ°ãããŸãã
|
The documentation is stored in the phpdoc module.
|
ãã®ããã¥ã¡ã³ãã® XML ãœãŒã¹ã³ãŒãã®ããŠã³ããŒã ã«é¢ããæ
å ±ã¯ http://cvs.php.net/ ã« ãããŸããããã¥ã¡ã³ã㯠phpdoc ã¢ãžã¥ãŒã«ã«æ ŒçŽ ãããŠããŸãã
|
If you find errors in this manual, in any language, please report them using the bug system at http: / /bugs.php.net /.
|
ããã¥ã¡ã³ããæ¹åããŠããã«ã¯2ã€ã®æ¹æ³ããããŸãã
|
By contributing notes, you can provide additional examples, caveats, and clarifications for other readers.
|
ãã(ã©ã®èšèªã§ãããããã®ã§ã)ããã¥ã¢ã«ã«ééããèŠã€ããã http://bugs.php.net/ ã«ãã bug systemã䜿ã£ãŠãã®åé¡ãå ±åããŠäžããããã°ã®çš®å¥ã¯ "Documentation Problem"ã«ããŠäžãããç¹å®ã®ãã©ãŒããã ã§ã®ã¿èµ·ããåé¡ãããããéä¿¡ããããšãåºæ¥ãŸãã
|
You can read more about annotations in the 'About user notes' section of this appendix.
|
泚æ bug systemã«å©ããèŠæ±ããããšã§ã·ã¹ãã ãç¡é§ã«äœ¿çšããªãã§äžããã ãããã£ãå Žåã¯åè¿°ããã¡ãŒãªã³ã°ãªã¹ããã³ãã¥ããã£ãµã€ãã å©çšããŠãã ããã
|
If you would like to start a new translation, or help in a translation project, please read http: / /cvs.php.net / co.php / phpdoc / howto / howto.html.tar.gz.
|
åããŒãžã«æ³šéãã€ããããšã§ãåæã«å®äŸãèŠåçã®æŽãªã説æã 远å ããããšãåºæ¥ãŸãããšã¯ããããã®æ³šéã·ã¹ãã ã䜿ã£ãŠ ãã°ã¬ããŒããéä¿¡ããªãã§äžããããŠãŒã¶ããŒãã®è©³çްã«ã€ããŠã¯ã About user notes ã® é
ãèªãã§äžããã
|
These formats can be divided into two groups: online readable formats, and downloadable packages.
|
PHPã®ããã¥ã¢ã«ã¯ããã€ãã®ãã©ãŒãããã§æäŸãããŠããŸãã 倧ãŸãã«èšããšãã©ãŒãããã«ã¯2ã€ã®çš®é¡ããããŸãããªã³ã©ã€ã³ã§ èªãããšã®ã§ãããã©ãŒããããšããŠã³ããŒãå¯èœãªããã±ãŒãžã§ãã
|
We cannot recommend any of those, as they tend to become out-of-date very quickly.
|
泚æ ããã€ãã®åºç瀟ã¯å°å·ãããããã¥ã¢ã«ãæäŸããŠããŸããç§ãã¡ ãšããŠã¯ãããããå§ãããããšã¯åºæ¥ãŸãããäœæ
ãªããããã£ã ãã®ã¯ããã«å€ããã®ãªã£ãŠããŸããã¡ã ããã§ãã
|
You can view the manual in either its plain (print-friendly) HTML format or an HTML format that integrates the manual into the look and feel of the PHP website itself.
|
ãªã³ã©ã€ã³ããã¥ã¢ã«ã¯ http://www.php.net/ ããããã€ãã®ãã©ãŒãµã€ãã§èªãããšãã§ããŸãããã®ã¿ã€ãã® ãã©ãŒãããã®ããã¥ã¢ã«ãå¿«é©ã«èªãããã«ã¯ãäžçªè¿ãå Žæã«ãã ãã©ãŒãµã€ããéžæãããšè¯ãã§ããããããã¥ã¢ã«ã¯ã·ã³ãã«ãª (ããªã³ã¿ãã¬ã³ããªãŒãª)HTMLãã©ãŒãããããPHPã®ãŠã§ããµã€ã ã®ãã¶ã€ã³ã«çµ±åãããHTMLãã©ãŒããããã®ãããããéžãã§ é²èЧããããšãåºæ¥ãŸãã
|
An obvious disadvantage is that you have to be online to view the manual in the online formats.
|
ãªã³ã©ã€ã³ããã¥ã¢ã«ã®ãªãã©ã€ã³ã®ããã¥ã¢ã«ã«å¯Ÿããäž»ãªå©ç¹ã¯ ãŠãŒã¶ããŒã ãçµ±åãããŠãã ããšã§ããããäžå©ãªç¹ã¯ãåœç¶ã§ããããã¥ã¢ã«ãèŠãããã«ã¯ åžžã«ãªã³ã©ã€ã³ã§ããå¿
èŠãããããšã§ãã
|
For information on how the manual is generated in so many formats, read the 'How we generate the formats' section of this appendix.
|
ãªãã©ã€ã³ãã©ãŒãããã«ã¯ããã€ãã®ã¿ã€ããããã®ã§ã䜿çšããŠãã OSãèªã¿æ¹ã«ããããŠæé©ãªãã®ãéžæããŠãã ããããããã®ç°ãªã£ã ãã©ãŒãããã®ããã¥ã¡ã³ããã©ã®ããã«çæããŠããããšãã æ
å ±ã«ã€ããŠã¯ããã®ä»é²ã® åçš®ãã©ãŒããããçæããæ¹æ³ ã®é
ãèªãã§ãã ããã
|
The HTML and plaintext formats are provided as tar files compressed using the bzip2 archiver.
|
ããã¹ããã¥ãŒã¯ããã©ãŠã¶ã¯ã©ããªOSã«ãæããã®ãªã®ã§ã HTMLãšããã¹ããã¡ã€ã«ã¯ã»ãšãã©ãã©ãããã©ãŒã ãåããã« å©çšã§ãããã©ãŒãããã§ããHTMLãã©ãŒãããã¯äžã€ã®HTMLãã¡ã€ã«ã« ãŸãšãããããã®ãšãç« ããšã«åå²ããããã¡ã€ã«ã®ããã±ãŒãž (ãã®çµæãç·æ°ã¯æ°åã«ããªã£ãŠããŸã)ã®äž¡æ¹ããããŸãã HTMLãšããã¹ããã¡ã€ã«ã¯å§çž®ãããbzip2ã§å§çž®ãããtarã¢ãŒã«ã€ã ãšããŠæäŸãããŠããŸãã
|
But before you rush to download this format and hit the Print button, be warned that the manual is nearly 2000 pages long, and constantly being revised.
|
PDF(ãŸãã®åãAdobe Acrobat)ããŸãã¯ãã¹ãã©ãããã©ãŒã 㪠ãã©ãŒãããã§ãå°å·ããã®ã«æé©ã§ããããããå¢ã蟌ãã§ ãã®ãã©ãŒããããããŠã³ããŒãããŠå°å·ãã¿ã³ãæŒãåã«ã ãã®ããã¥ã¢ã«ã¯2000ããŒãžãã®é·ããæã¡ãåžžã«æŽæ°ãã㊠ããããšããããšã«ã€ããŠããèããŠã¿ãŠãã ããã
|
If you do not already have a program capable of viewing PDF format files, you may need to download Adobe Acrobat Reader.
|
泚æ ããPDFãã¡ã€ã«ãé²èЧããããã°ã©ã ãç¡ãå Žåã¯ã Adobe Acrobat Reader ã ããŠã³ããŒãããå¿
èŠããããŸãã
|
You can bring your handheld with you on your daily commute and use a DOC or iSilo reader to brush up on your PHP knowledge, or just use it as a quick reference.
|
Palmäºæã®ããã€ã¹ãæã£ãŠãã人ã«ãšã£ãŠã¯ãPalmããã¥ã¡ã³ãã iSiloãçæ³çãªãã©ãŒãããã§ããPalmãæ¥ã
ã®éå€ã§æã¡æ©ãã DOC ã iSilo ã䜿çšããŠPHPã®ç¥è㫠磚ãããããããã¯ã€ãã¯ãªãã¡ã¬ã³ã¹ãšããŠäœ¿çšããããšã ã§ããŸãã
|
This version provides full-text search, a full index, and bookmarking.
|
Windowsäžã§ã¯ãWindowsãã«ãã§Windows HTMLãã«ãçã®ããã¥ã¢ã«ã 䜿çšãããšéåžžã«äŸ¿å©ã§ãããã®ããŒãžã§ã³ã¯å
šææ€çŽ¢ãå®å
šãªç®æ¬¡ã ãããŠããã¯ããŒã¯æ©èœãæäŸããŸããå€ãã®æåãªWindowsäžã§ã® PHPéçºç°å¢ã§ã¯ãã®ããŒãžã§ã³ã®ããã¥ã¢ã«ãçµ±åããæ©èœãåã㊠ããŠãéåã«ã¢ã¯ã»ã¹ããããšãåºæ¥ãŸãã
|
List of Parser Tokens
|
泚æ CHMã¯ãªãšãŒã¿ãšãã¥ãŒã¯ã®éçºãè¡ã£ãŠããVisual Basic for Linuxãããžã§ã¯ãã¯ãŸã èšç»äžã®æ®µéã§ãããããã® ãããžã§ã¯ãã®é²è¡ç¶æ³ã«èå³ããããªãã sourceforge ã®ããŒãžã èŠãŠäžããã
|
If you are a first-time, or even just a beginning, programmer, you may find it difficult to learn how to program in PHP using just this manual.
|
ãã®ããã¥ã¢ã«ã¯äžè¬çãªããã°ã©ãã³ã°ã®è§£èª¬ãæäŸããã ãšããŠããããã§ã¯ãããŸãããåŸã£ãŠãããããªããå
šãåã㊠ããã°ã©ãã³ã°ãè¡ãããããã¯ã»ãšãã©åå¿è
ã§ããããšèšãå Žå㯠ãã®ããã¥ã¢ã«ã ãã䜿ã£ãŠãPHPã®ããã°ã©ãã³ã°ãç¿åŸããã®ã¯ é£ããã§ããããããããå Žåã«ã¯åå¿è
åãã®æ¬ãæ¢ããã»ãã ãããããããŸãããPHPé¢é£ã®æžç±ã¯ http://www.php.net/books.php ã§èŠã€ããããšã ã§ããŸãã
|
And until the notes have been incorporated, they can be viewed in their submitted form online and in some of the offline formats.
|
ãŠãŒã¶ããŒãã¯PHPããã¥ã¢ã«ãäœæããŠããäžã§éèŠãªåœ¹å²ã æã£ãŠããŸããããã¥ã¢ã«ã®èªè
ãå®äŸãèŠåãããŠããã«è©³ãã 説æããã©ãŠã¶ããæäŸã§ããããã«ããããšã§ããããã ãã£ãŒãããã¯ãããã¥ã¢ã«ã®æ¬æã«åã蟌ãããšãåºæ¥ãã®ã§ãã ãããŠèšäºãæ¬æã«åãå
¥ãããããŸã§ã®éã¯ããã®å
容ããªã³ã©ã€ã³ã ãããã¯ããã€ãã®ãªãã©ã€ã³ãã©ãŒãããã§åç
§ããããšãåºæ¥ãŸãã
|
For more details see the Manual 's Copyright page.
|
ãŠãŒã¶ããŒããPHPã®ãµã€ãã«è¡šç€ºãããéã«ãäœããã® æå¶ãããããã§ã¯ãªãããšããããšã«æ³šæããŠäžããã åŸã£ãŠãããã«æžãããå
容ãå®äŸã®è³ªã«ã€ããŠã¯ä¿èšŒ ãããŸãã(ãšã¯ãããããã¥ã¢ã«ã®æ¬æãã®ãã®ã® 質ãä¿èšŒãããªãããšããããšã§ã¯ãããŸãã)ã
|
This list is provided to help those who want to upgrade their old scripts to newer syntax.
|
以äžã«ãšã€ãªã¢ã¹ã®ãªã¹ãã瀺ããŸããå
šãŠã®ãšã€ãªã¢ã¹ãèšè¿°ãããŠã ãŸãããšã€ãªã¢ã¹ã®äœ¿çšã¯å€ãã£ãããååã倿ŽãããŠãããã§ç§»æ€æ§ã® äœãã¹ã¯ãªãããšãªãããæšå¥šãããŸããããã®ãªã¹ãã¯ãå€ãã¹ã¯ãªãã ããæ°ããæ§æã«æŽæ°ããããšãã人ã®å©ããšãªãããã«æäŸããããã®ã§ ãã
|
This list is consistent with PHP 4.0.6.
|
ãã®ãªã¹ãã¯ãPHP 4.0.6ã«åºã¥ããŸãã
|
Table F-1.
|
衚 F-1ãšã€ãªã¢ã¹
|
call_user_function() returns SUCCESS on success, and FAILURE in case the function cannot be found.
|
ãŠãŒã¶ãŒé¢æ°ãå
éšé¢æ°ããã³ãŒã«ããã«ã¯ã call_user_function() 颿°ã 䜿çšããå¿
èŠããããŸãã
|
If it returns FAILURE, the value of retval is undefined, and you mustn 't touch it.
|
call_user_function() ã¯æåæã« SUCCESSã 颿°ãèŠã€ããããªãã£ãå Žåã« FAILURE ãè¿ããŸãã è¿ãå€ã確èªããå¿
èŠããããŸã! SUCCESS ãè¿ãããå Žåã retval pval èªäœ(ãŸãã¯é¢æ°ããã®è¿ãå€ãšã㊠ãããè¿ã)ãç Žæ£ãã責任ããããŸãã FAILURE ãè¿ãããå Žåãretval ã®å€ã¯æªå®çŸ©ã§ãããåç
§ããããšã¯ ã§ããŸããã
|
Among other things, this means they must not use globals or static variables.
|
ãŠãŒã¶ãŒé¢æ°ãã³ãŒã«ããå
šãŠã®å
éšé¢æ°ã¯ãåå
¥å¯èœ(reentrant) ã§ãã å¿
èŠããããŸã ã ç¹ã«ããã®ããšã¯ãã°ããŒãã«ãŸãã¯éç倿°ã䜿çšããã¹ãã§ã¯ ãªããšããããšãæå³ããŸãã
|
This is a pointer to an object on which the function is invoked.
|
call_user_function() ã¯æ¬¡ã® 6åã®åŒæ°ããšããŸãã
|
If it' s not NULL (i.e. it points to an object), the function_table argument is ignored, and instead taken from the object's hash.
|
ããã¯ã颿°ãåç
§ã§ããããã·ã¥ããŒãã«ã§ãã
|
The function_name is modified by call_user_function() - it's converted to lowercase.
|
ã³ãŒã«ãã颿°ã®ååã function_name.str.val ããã³ function_name.str.len ã«é©åœãª å€ãèšå®ãã IS_STRING åã® pval ã§ããå¿
èŠããããŸãã function_name ã¯ãcall_user_function() ã«ããä¿®æ£ãããŸãã ãã®æãfunction_name ã¯ãå°æåã«å€æãããŸãã 倧æåã»å°æåãä¿åããå¿
èŠãããå Žåã颿°åã®ã³ããŒã代ããã« éã£ãŠéã£ãŠãã ããã
|
A pointer to a pval structure, into which the return value of the invoked function is saved.
|
ã³ãŒã«ããã颿°ã®è¿ãå€ãä¿åããã pval æ§é äœãžã®ãã€ã³ã¿ã æ§é äœã¯ãäºåã«ç¢ºä¿ããããã®ã§ããå¿
èŠããããŸãã call_user_function() ã¯ããèªäœã§ã¯ ãªãœãŒã¹ã®ç¢ºä¿ãè¡ããŸããã
|
The number of parameters being passed to the function.
|
颿°ã«æž¡ããããã©ã¡ãŒã¿ã®æ°
|
The array is an array of pointers to pval' s; The pointers are sent as-is to the function, which means if the function modifies its arguments, the original values are changed (passing by reference).
|
颿°ã®åŒæ°ãšããŠæž¡ãããå€ãžã®ãã€ã³ã¿ã®é
åãæåã®åŒæ°ã¯ ãªãã»ãã 0 ã«ããã2çªç®ã¯ãªãã»ãã 1 ã«ãããŸãã é
åã¯ãpval ãžã®ãã€ã³ã¿ã®é
åã§ãã ãã€ã³ã¿ã¯ã颿°ã«ãã®ãŸãŸéãããŸãã ãã®ããšã¯ã颿°ãåŒæ°ãä¿®æ£ããå Žåãå
ã®å€ã倿Žããã(åç
§æž¡ã) ããšãæå³ããŸãã ãã®åäœã奜ãŸãããªãå Žåãã³ããŒã代ããã«æž¡ããŠãã ããã
|
$obj = new COM( "server.object")
|
(no version information, might be only in CVS)
|
COM class constructor.
|
COM ã¯ã©ã¹ã¯ãPHPã¹ã¯ãªããã«çµ±åããã (D)COMã³ã³ããŒãã³ãã®ã ã¬ãŒã ã¯ãŒã¯ãæäŸããŸãã
|
name of the DCOM server from which the component should be fetched.
|
COM ã¯ã©ã¹ã®ã³ã³ã¹ãã©ã¯ã¿ã ãã©ã¡ãŒã¿:
|
To allow DCOM com.allow_dcom has to be set to TRUE in php.ini.
|
ãªã¯ãšã¹ããããã³ã³ããŒãã³ãã®ååãŸãã¯ã¯ã©ã¹IDã
|
Possible values are CP_ACP, CP_MACCP, CP_OEMCP, CP_SYMBOL, CP_THREAD_ACP, CP_UTF7 and CP_UTF8.
|
ã³ã³ããŒãã³ããååŸããDCOMãµãŒãã®ååã NULL ã®å Žåã«ã¯ã localhost ãæå®ããããšä»®å®ãããŸãã DCOMã䜿çšããããã«ã¯ã php.ini ã§ com.allow_dcom ã TRUE ã«èšå®ããŠããå¿
èŠããããŸãã
|
COM example (2)
|
äŸ 1COM ã®äŸ (1)
|
COM support functions for Windows
|
äŸ 2COM ã®äŸ (2)
|
The handle property can be used with other directory functions such as readdir(), rewinddir() and closedir().
|
(PHP 3, PHP 4)
|
We are explicitly testing whether the return value is identical to (equal to and of the same type as--see Comparison Operators for more information) FALSE since otherwise, any directory entry whose name evaluates to FALSE will stop the loop.
|
ãã£ã¬ã¯ããªãèªãããã®ç䌌ãªããžã§ã¯ãæåã®æ©æ§ã§ãã æå®ãã directory ããªãŒãã³ãããŸãã ãã£ãããã£ã¬ã¯ããªããªãŒãã³ããããšã2 ã€ã®ããããã£ãäœ¿çš ã§ããããã«ãªããŸããhandle ããããã£ã¯ã readdir (), rewinddir(), closedir() ã®ãããªä»ã®ãã£ã¬ã¯ããªé¢æ°ãšçµã¿åãã㊠䜿çšå¯èœã§ããpath ããããã£ã«ã¯ããªãŒãã³ãããã£ã¬ã¯ããªã®ãã¹ ãã»ããããŸããread, rewind, close ã®3çš®é¡ã®ã¡ãœããã 䜿çšã§ããŸãã
|
$d = dir( "/ etc"); echo "Handle: ".$d - handle." br \n"; echo "Path: ".$d - path. "br \n"; while (false !== ($entry = $d - read())) {echo $entry." br \n";} $d - close();
|
äŸ 1 dir() ã®äŸ
|
For a full list of predefined classes in PHP, please see Predefined Classes.
|
泚æ èªã¿èŸŒã¿ã«ããè¿ããããã£ã¬ã¯ããªãšã³ããªã®é çªã¯ãã·ã¹ãã ã«äŸ åããŸãã
|
(no version information, might be only in CVS)
|
(no version information, might be only in CVS)
|
A simple container to wrap variables into VARIANT structures.
|
VARIANTæ§é äœã«å€æ°ãã©ããããããã®ç°¡åãªã³ã³ããã¯ã©ã¹ã
|
Parameters:
|
VARIANT ã¯ã©ã¹ã®ã³ã³ã¹ãã©ã¯ã¿ã ãã©ã¡ãŒã¿:
|
specifies the content type of the VARIANT object.
|
åæå€ãçç¥ããå Žåã«ã¯ãVT_EMPTYãªããžã§ã¯ããäœæãããŸãã
|
Possible values are CP_ACP, CP_MACCP, CP_OEMCP, CP_SYMBOL, CP_THREAD_ACP, CP_UTF7 and CP_UTF8.
|
PHPã®æååã®UNICODEæååãžã®å€æããã³ãã®é倿ã§äœ¿çšãã ãã³ãŒãããŒãžãæå®ããŸãã䜿çšå¯èœãªå€ã¯ã CP_ACP, CP_MACCP, CP_OEMCP, CP_SYMBOL, CP_THREAD_ACP, CP_UTF7, CP_UTF8 ã§ ãã
|
When using PHP as an Apache module, you can also change the configuration settings using directives in Apache configuration files (e.g. httpd.conf) and .htaccess files (You will need "AllowOverride Options "or "AllowOverride All" privileges)
|
PHP ã Apache ã¢ãžã¥ãŒã«ãšããŠäœ¿çšããå ŽåãApacheçšèšå®ãã¡ã€ã«ã .htaccess ãã¡ã€ã«ã«åœä»€ãèšè¿°ããããšã«ããPHPã®èšå®ãè¡ãããšã å¯èœã§ã("AllowOverride Options" ããã㯠"AllowOverride All"æš©é ãå¿
èŠ)ã
|
For a listing of which directives are PHP_INI_ALL, PHP_INI_PERDIR, or PHP_INI_SYSTEM, have a look at the table found within the ini_set() documentation.
|
PHP 3.0 ã«ãããŠã¯ã php3.ini ã®åãã£ã¬ã¯ã㣠ãã«å¯Ÿå¿ãã Apache çšãã£ã¬ã¯ãã£ããååšããPHP çšã®ãã£ã¬ã¯ã㣠ãã®åã« "php3_" ãä»ããŠäœ¿çšããããšã«ãããèšå®ã®å€æŽãå¯èœã§ãã
|
Sets the value of the specified directive.
|
PHP 4.0 ã«ãããŠã¯ãPHPèšå®çšã®è€æ°ã®Apacheãã£ã¬ã¯ãã£ããããã Apacheã®èšå®ãã¡ã€ã«ã§PHPã®èšå®ã倿Žå¯èœã§ãã
|
To clear a previously set value use none as the value.
|
æä»€ãã倿°ã®å€ãèšå®ããŸãã
|
Can be used only with PHP_INI_ALL and PHP_INI_PERDIR type directives.
|
è«çå€ã®ãªãã·ã§ã³èšå®ã倿Žããããã«äœ¿çšããŸãã
|
Used to set a Boolean configuration directive.
|
æå®ãã倿°ã®å€ãèšå®ããŸãã"Admin" ã¯ãã¡ã€ã³ã® Apache çšèš å®ãã¡ã€ã«ã«ãããŠã®ã¿èšå®å¯èœã§ã.htaccess ãã¡ã€ã«ããã¯èšå® ã§ããŸããã
|
Any directive type set with php_admin_flag can not be overridden by .htaccess or virtualhost directives.
|
è«çå€ã®ãªãã·ã§ã³ãèšå®ããããã«äœ¿çšãããŸãã (Adminã®æå³ã¯äžèšã®ãªãã·ã§ã³ãšåãã§ãã)
|
PHP constants do not exist outside of PHP.
|
äŸ 4-2Apache èšå®ã®äŸ
|
Use the associated bitmask values instead.
|
泚æ PHP宿°ã¯PHP以å€ã§ã¯äœ¿çšã§ããŸãããäŸãã°ã httpd.conf ã®äžã§ error_reporting ã㣠ã¬ã¯ãã£ããèšå®ããããã« E_ALL ãŸã㯠E_NOTICE ã®ãããªPHP宿°ã䜿çšãã ããšã¯ã§ããŸããããããã¯æå³ãæããªãããã 0 ãšè©äŸ¡ãããŠããŸããŸãã 代ããã«å¯Ÿå¿ããããããã¹ã¯ã䜿çšããŠäžããããããã®å®æ°ã¯ã php.ini ã§äœ¿çšããããšãã§ããŸãã
|
The following table provides an overview at which level a directive can be set / changed.
|
PHP ãžã®ã€ã³ã¿ãŒãã§ã€ã¹ã«ãããã ini_set() ã«ããã¹ã¯ãªããã®å®è¡æããçš®ã®å€ã 倿Žããããšãã§ããŸãã以äžã®è¡šã«ã©ã®ã¬ãã«ã®ãã£ã¬ã¯ãã£ããèš å®/倿Žã§ãããã®æŠèŠã瀺ããŸãã
|
PHP_INI_SYSTEM
|
衚 4-1PHP_INI_* 宿°ã®å®çŸ©
|
You can also access the values of individual configuration directives using ini_get() or get_cfg_var().
|
phpinfo() ã®åºåã§èšå®å€ãåç
§ããããšãã§ã㟠ãããŸãã ini_get() ãŸã㯠get_cfg_var() ã«ããåã
ã®èšå®å€ã«ã¢ã¯ã»ã¹ãã ããšãå¯èœã§ãã
|
Language and Misc Configuration Options
|
衚 4-2httpdãªãã·ã§ã³
|
allow_call_time_pass_reference
|
衚 4-3èšèªããã³ãã®ä»ã®èšå®ãªãã·ã§ã³
|
expose_php
|
以äžã«èšå®ãã£ã¬ã¯ãã£ãã®ç°¡åãªèª¬æã瀺ããŸãã
|
Here is a short explanation of the configuration directives.
|
PHP ã¿ã°ã®ççž®å (??) ãäœ¿çš å¯èœã«ãããã©ãããèšå®ããŸããPHPãXMLãšçµã¿åãããŠçšãã å Žåã¯ã ?xml? ããã¡ã€ã«äžã§çš ããããã«ãã®ãªãã·ã§ã³ããªãã«ããå¿
èŠããããŸãããªã³ã«ã ãå Žåã«PHPã§XMLãåºåããã«ã¯ãäŸãã°ã次ã®ããã«ããŸãã ?php echo '?xml version="1.0"';? ããããªãã«ããå Žåãé·ãæ¹ã®åœ¢åŒã®ã¿ã° (?php? )ã䜿çšããå¿
èŠããã㟠ãã
|
If you want to use PHP in combination with XML, you can disable this option in order to use ?xml? inline.
|
泚æ ãã®ãã£ã¬ã¯ãã£ãã¯ã? echo ãšåã圢åŒã® ã·ã§ãŒãã«ãã ?= ã圱é¿ãåããŸãã ãã®ã·ã§ãŒãã«ããã䜿çšããã«ã¯ã short_open_tag ãonãšãã å¿
èŠããããŸãã
|
Also if disabled, you must use the long form of the PHP open tag (?php?).
|
ASP 圢åŒã®ã¿ã°%% ãéåžžã®ã¿ã° ?php? ã«å ããŠäœ¿çšå¯èœã«ããŸãã ãã®ã¹ã€ããã«ãããåºåã®ç瞮圢 %= $value% ã䜿çšã§ããããã«ãªããŸãã è©³çŽ°ãªæ
å ±ã¯ã HTML ããã®ãšã¹ã±ãŒã ãåç
§äžããã
|
This directive also affects the shorthand ?=, which is identical to? echo.
|
泚æ ASP圢åŒã®ã¿ã°ã¯3.0.4ã§è¿œå ãããŸããã
|
Enables the use of ASP-like%% tags in addition to the usual ?php? tags.
|
æµ®åå°æ°ç¹æ°ã«é¢ããŠè¡šç€ºãããæå€§æ¡æ°ãæå®ããŸãã
|
For more information, see Escaping from HTML.
|
2000幎åé¡å¯Ÿå¿ã匷å¶ããŸãã(2000幎åé¡é察å¿ã®ãã©ãŠã¶ã«åé¡ ãçºçããå¯èœæ§ããããŸãã)
|
Enforce year 2000 compliance (will cause problems with non-compliant browsers)
|
颿°ã®ã³ãŒã«æã«åŒæ°ã匷å¶çã«åç
§ã§æž¡ãæ©èœã®æå¹/ç¡å¹ãèšå® ããŸãããã®æ©èœã¯éå»ã®ãã®ã§ãããå°æ¥ã®ããŒãžã§ã³ã® PHP/Zendã§ã¯ãµããŒããããªãå¯èœæ§ããããŸãã æšå¥šãããæ¹æ³ã¯ã颿°å®£èšæã«åç
§æž¡ããšããã¹ãåŒæ°ãæå®ã ãæ¹æ³ã§ããå°æ¥ã®ããŒãžã§ã³ã§ã®åäœãä¿éããããã«ããã®ãª ãã·ã§ã³ãoffãšããã¹ã¯ãªããããã®ç¶æ
ã§æ£ããåäœããããšã 確èªããããšãæšå¥šãããŸãã (ãã®æ©èœã䜿çšãã床ã«èŠåãçºçããåŒæ°ã¯åç
§ã§ã¯ãªãå€ã§æž¡ ãããŸãã)
|
This method is deprecated and is likely to be unsupported in future versions of PHP / Zend.
|
åç
§ã«é¢ãã説æ ã åç
§äžããã
|
See also References Explained.
|
衚 4-4ãªãœãŒã¹å¶é
|
Decides whether PHP may expose the fact that it is installed on the server (e.g. by adding its signature to the Web server header).
|
以äžã«èšå®ãã£ã¬ã¯ãã£ãã«é¢ããç°¡åãªèª¬æã瀺ããŸãã
|
Table 4-4.
|
ã¹ã¯ãªããã確ä¿ã§ããæå€§ã¡ã¢ãªããã€ãæ°ã§æå®ããŸãããã® åœä»€ã¯ãæ£ããæžãããŠããªãã¹ã¯ãªããããµãŒããŒã®ã¡ã¢ãªãé£ ãã€ã¶ãããšã鲿¢ããã®ã«åœ¹ç«ã¡ãŸãã
|
Name
|
max_execution_time ãåç
§äžããã
|
memory_limit
|
衚 4-5ããŒã¿åŠçèšå®ãªãã·ã§ã³
|
Here is a short explanation of the configuration directives.
|
以äžã«èšå®ãã£ã¬ã¯ãã£ãã«é¢ããç°¡åãªèª¬æã瀺ããŸãã
|
This helps prevent poorly written scripts for eating up all available memory on a server.
|
ãã®ãªãã·ã§ã³ãæå¹ã«ããå Žåãç°å¢ãGETãPOSTãã¯ãããŒããµãŒ ã倿°ã¯ãã°ããŒãã«é£æ³é
å $_ENV, $_GET, $_POST, $_COOKIE, $_SERVER ã§åç
§ããããšãã§ããŸãã
|
So, your configure line would have included: --enable-memory-limit.
|
PHP 4.0.3以éã, track_vars ã¯åžžã«onãšãªã£ãŠãã ããšã«æ³šæããŠäžããã
|
See also: max_execution_time.
|
PHPãURLãçæããéã«URLåŒæ°ãåºåããããã«äœ¿çšãããã»ãã¬ãŒ ã¿ã
|
allow_webdav_methods
|
å
¥åãããURLã倿°ã«ããŒã¹ããéã«PHPã䜿çšããã»ãã¬ãŒã¿ã®ãªã¹ãã
|
Here is a short explanation of the configuration directives.
|
泚æ ãã®ãã£ã¬ã¯ãã£ãã§æå®ããå
šãŠã®æåã¯ã»ãã¬ãŒã¿ãšããŠèªè ãããŸã!
|
Note that as of PHP 4.0.3, track_vars is always turned on.
|
EGPCS (Environment, GET, POST, Cookie, Server) 倿°ã®ããŒã¹ã® é çªãèšå®ããŸãããã®ãã£ã¬ã¯ãã£ãã®ããã©ã«ãã®èšå®å€ã¯ã "EGPCS"ã§ããäŸãã°ãããã"GP"ã«èšå®ãããšPHPã¯å®å
šã«ç°å¢å€ æ°ãã¯ãããŒããµãŒã倿°ãç¡èŠããGETã¡ãœãã倿°ãåãååã® POSTã¡ãœãã倿°ã§å
šãŠäžæžãããããã«ãªããŸãã
|
List of separator( s) used by PHP to parse input URLs into variables.
|
register_globals ãåç
§äžããã
|
Setting this to "GP", for example, will cause PHP to completely ignore environment variables, cookies and server variables, and to overwrite any GET method variables with POST-method variables of the same name.
|
register_globals ã¯ã (ini_set() ã§)å®è¡æã«èšå®ããããšãã§ããªãããšã« 泚æããŠäžãããããããåèšã®ããã«ãã¹ããèš±å¯ããŠããå Žåã«ã¯ã .htaccess ã䜿çšããããšãã§ããŸãã .htaccess ãšã³ããªã®äŸã以äžã«ç€ºããŸãã php_flag register_globals on
|
Tells whether or not to register the EGPCS (Environment, GET, POST, Cookie, Server) variables as global variables.
|
泚æ register_globals ã¯ã variables_order ãã£ã¬ã¯ãã£ãã®åœ±é¿ãåããŸãã
|
Or, $DOCUMENT_ROOT from $_SERVER[ 'DOCUMENT_ROOT'].
|
PHPã倿°argvãšargcã宣èšãããã©ãããæå®ããŸã (argvã«ã¯GETã®æ
å ±ãæ ŒçŽãããŸã)ã
|
As of PHP 4.2.0, this directive defaults to off.
|
ã³ãã³ãã©ã€ã³ ãåç
§ããŠäžããããã®ãã£ã¬ã¯ãã£ãã¯PHP 4.0.0㧠远å ãããŸããã以åã®ããŒãžã§ã³ã§ã¯åžžã«"on"ã§ãã
|
Please read the security chapter on Using register_globals for related information.
|
POSTããŒã¿ã«èš±å¯ãããæå€§ãµã€ãºãèšå®ããŸãããã®èšå®ã¯ããã¡ ã€ã«ã¢ããããŒãã«ã圱é¿ããŸãã倧ããªãã¡ã€ã«ãã¢ããããŒã ããã«ã¯ããã®å€ã upload_max_filesize ãã倧ããèšå®ããå¿
èŠããããŸãã
|
Although, you can use .htaccess if your host allows it as described above.
|
configureã¹ã¯ãªããã§ã¡ã¢ãªå¶éãæå¹ãšããå Žåã memory_limit ããã¡ã€ã«ã¢ã ãããŒãã«åœ±é¿ããŸããäžè¬çã« memory_limit ã¯ã post_max_size ããã倧ãã ããå¿
èŠããããŸãã
|
Tells PHP whether to declare the argv argc variables (that would contain the GET information).
|
GET/POST/COOKIE 倿°åŠçã®é çªãèšå®ããŸãããã®åœä»€ã®ããã© ã«ãã®èšå®ã¯ã"GPC"ã§ããäŸãã°ãããã"GP"ã«PHPã¯ã¯ãããŒã å®å
šã«ç¡èŠããGETã¡ãœãã倿°ãååã®POSTã¡ãœãã倿°ã§äžæžã ããŸãã
|
Sets max size of post data allowed.
|
泚æ ãã®ãªãã·ã§ã³ã¯ãPHP 4ã§ã¯å©çšã§ããŸãªãããšã«æ³šæããŠäžããã 代ããã«ã variables_order ã䜿çšã ãŠäžããã
|
If memory limit is enabled by your configure script, memory_limit also affects file uploading.
|
ã¡ã€ã³ãã¡ã€ã«ã®åã«èªåçã«ä»å ããããã¡ã€ã«ã®ååã æå®ããŸãã ãã®ãã¡ã€ã«ã¯ã include() 颿°ã®ã³ãŒã«æ ãšåæ§ã«èªã¿èŸŒãŸããŸãã ãã®ããã include_path ã䜿çšãããŸãã
|
Set the order of GET / POST / COOKIE variable parsing.
|
ç¹å¥ãªå€ none ãæ å®ãããšããã¡ã€ã«ãåã«è¿œå ããæ©èœã¯ç¡å¹ãšãªããŸãã
|
Setting this to "GP", for example, will cause PHP to completely ignore cookies and to overwrite any GET method variables with POST-method variables of the same name.
|
ã¡ã€ã³ãã¡ã€ã«ã®åŸã«èªåçã«è¿œå ããããã¡ã€ã«ã® ååãæå®ããŸãã ãã®ãã¡ã€ã«ã¯ã include() 颿°ã®ã³ãŒã«æ ãšåæ§ã«èªã¿èŸŒãŸããŸãã ãã®ããã include_path ã䜿çšãããŸãã
|
The file is included as if it was called with the include() function, so include_path is used.
|
none ãå€ãšã㊠æå®ãããšãã®èªåä»å æ©èœã¯ãªããšãªããŸãã
|
The file is included as if it was called with the include() function, so include_path is used.
|
泚æ ã¹ã¯ãªããã exit() ã§çµäºããå Žåã ãã®èªåä»å æ©èœã¯äœ¿çšãããŸãã ã
|
As of 4.0b4, PHP always outputs a character encoding by default in the Content-type: header.
|
4.0b4以éãPHP ã¯ãããã©ã«ãã§åžžã«Content-type:ãããã§ character encodingãåºåããããã«ãªã£ãŠããŸããcharsetã®éä¿¡ ãç¡å¹ã«ããã«ã¯ãããã空ã«ããŠäžããã
|
Always populate the $HTTP_RAW_POST_DATA variable.
|
åžžã«$HTTP_RAW_POST_DATA倿°ã«ã¢ã¯ã»ã¹å¯èœãšããŸãã
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.