📄 ini.core.html
字号:
<p class="para"> Using a <i>.</i> in the include path allows for relative includes as it means the current directory. </p> </dd> </dt> <dt id="ini.doc-root"> <span class="term"> <i><tt class="parameter">doc_root</tt></i> <a href="language.types.string.html" class="type string">string</a> </span> <dd> <p class="para"> PHP's "root directory" on the server. Only used if non-empty. If PHP is configured with <a href="features.safe-mode.html#ini.safe-mode" class="link">safe mode</a>, no files outside this directory are served. If PHP was not compiled with FORCE_REDIRECT, you <em class="emphasis">should </em> set doc_root if you are running PHP as a CGI under any web server (other than IIS). The alternative is to use the <a href="ini.core.html#ini.cgi.force-redirect" class="link"> cgi.force_redirect</a> configuration below. </p> </dd> </dt> <dt id="ini.user-dir"> <span class="term"> <i><tt class="parameter">user_dir</tt></i> <a href="language.types.string.html" class="type string">string</a> </span> <dd> <p class="para"> The base name of the directory used on a user's home directory for PHP files, for example <var class="filename">public_html </var>. </p> </dd> </dt> <dt id="ini.extension-dir"> <span class="term"> <i><tt class="parameter">extension_dir</tt></i> <a href="language.types.string.html" class="type string">string</a> </span> <dd> <p class="para"> In what directory PHP should look for dynamically loadable extensions. See also: <a href="info.configuration.html#ini.enable-dl" class="link">enable_dl</a>, and <a href="function.dl.html" class="function">dl()</a>. </p> </dd> </dt> <dt id="ini.extension"> <span class="term"> <i><tt class="parameter">extension</tt></i> <a href="language.types.string.html" class="type string">string</a> </span> <dd> <p class="para"> Which dynamically loadable extensions to load when PHP starts up. </p> </dd> </dt> <dt id="ini.cgi.check-shebang-line"> <span class="term"> <i><tt class="parameter">cgi.check_shebang_line</tt></i> <a href="language.types.boolean.html" class="type boolean">boolean</a> </span> <dd> <p class="para"> Controls whether CGI PHP checks for line starting with #! (shebang) at the top of the running script. This line might be needed if the script support running both as stand-alone script and via PHP CGI. PHP in CGI mode skips this line and ignores its content if this directive is turned on. </p> </dd> </dt> <dt id="ini.cgi.fix-pathinfo"> <span class="term"> <i><tt class="parameter">cgi.fix_pathinfo</tt></i> <a href="language.types.boolean.html" class="type boolean">boolean</a> </span> <dd> <p class="para"> Provides <em class="emphasis">real</em> PATH_INFO/PATH_TRANSLATED support for CGI. PHP's previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting this to 1 will cause PHP CGI to fix it's paths to conform to the spec. A setting of zero causes PHP to behave as before. Default is zero. You should fix your scripts to use SCRIPT_FILENAME rather than PATH_TRANSLATED. </p> </dd> </dt> <dt id="ini.cgi.force-redirect"> <span class="term"> <i><tt class="parameter">cgi.force_redirect</tt></i> <a href="language.types.boolean.html" class="type boolean">boolean</a> </span> <dd> <p class="para"> cgi.force_redirect is necessary to provide security running PHP as a CGI under most web servers. Left undefined, PHP turns this on by default. You can turn it off <em class="emphasis">at your own risk</em>. </p> <blockquote><p><b class="note">Note</b>: Windows Users: You <em class="emphasis">can</em> safely turn this off for IIS, in fact, you <em class="emphasis">must</em>. To get OmniHTTPD or Xitami to work you <em class="emphasis">must</em> turn it off. <br /> </p></blockquote> </dd> </dt> <dt id="ini.cgi.redirect-status-env"> <span class="term"> <i><tt class="parameter">cgi.redirect_status_env</tt></i> <a href="language.types.string.html" class="type string">string</a> </span> <dd> <p class="para"> If cgi.force_redirect is turned on, and you are not running under Apache or Netscape (iPlanet) web servers, you <em class="emphasis">may</em> need to set an environment variable name that PHP will look for to know it is OK to continue execution. </p> <blockquote><p><b class="note">Note</b>: Setting this variable <em class="emphasis">may</em> cause security issues, <em class="emphasis">know what you are doing first</em>. <br /> </p></blockquote> </dd> </dt> <dt id="ini.fastcgi.impersonate"> <span class="term"> <i><tt class="parameter">fastcgi.impersonate</tt></i> <a href="language.types.string.html" class="type string">string</a> </span> <dd> <p class="para"> FastCGI under IIS (on WINNT based OS) supports the ability to impersonate security tokens of the calling client. This allows IIS to define the security context that the request runs under. mod_fastcgi under Apache does not currently support this feature (03/17/2002) Set to 1 if running under IIS. Default is zero. </p> </dd> </dt> <dt id="ini.cgi.rfc2616-headers"> <span class="term"> <i><tt class="parameter">cgi.rfc2616_headers</tt></i> <a href="language.types.integer.html" class="type int">int</a> </span> <dd> <p class="para"> Tells PHP what type of headers to use when sending HTTP response code. If it's set 0, PHP sends a Status: header that is supported by Apache and other web servers. When this option is set to 1, PHP will send <a href="http://www.faqs.org/rfcs/rfc2616" class="link external">» RFC 2616</a> compliant headers. Leave it set to 0 unless you know what you're doing. </p> </dd> </dt> </dl> </p> </div> <div id="ini.sect.file-uploads" class="section"> <h2 class="title">File Uploads</h2> <p class="para"> <table border="5"> <caption><b>File Uploads Configuration Options</b></caption> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Name</th> <th colspan="1">Default</th> <th colspan="1">Changeable</th> <th colspan="1">Changelog</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">file_uploads</td> <td colspan="1" rowspan="1" align="left">"1"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_SYSTEM</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL in PHP <= 4.2.3. Available since PHP 4.0.3.</td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">upload_tmp_dir</td> <td colspan="1" rowspan="1" align="left">NULL</td> <td colspan="1" rowspan="1" align="left">PHP_INI_SYSTEM</td> <td class="empty"> </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">upload_max_filesize</td> <td colspan="1" rowspan="1" align="left">"2M"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_PERDIR</td> <td colspan="1" rowspan="1" align="left">PHP_INI_ALL in PHP <= 4.2.3.</td> </tr> </tbody> </colgroup> </table> </p> <p class="para">Here's a short explanation ofthe configuration directives.</p> <p class="para"> <dl> <dt id="ini.file-uploads"> <span class="term"> <i><tt class="parameter">file_uploads</tt></i> <a href="language.types.boolean.html" class="type boolean">boolean</a> </span> <dd> <p class="para"> Whether or not to allow HTTP <a href="features.file-upload.html" class="link">file uploads</a>. See also the <a href="ini.core.html#ini.upload-max-filesize" class="link">upload_max_filesize</a>, <a href="ini.core.html#ini.upload-tmp-dir" class="link">upload_tmp_dir</a>, and <a href="ini.core.html#ini.post-max-size" class="link">post_max_size</a> directives. </p> <span class="simpara">When an <a href="language.types.integer.html" class="type integer">integer</a> is used, the value is measured in bytes. Shorthand notation, as described in <a href="faq.using.html#faq.using.shorthandbytes" class="link">this FAQ</a>, may also be used.</span> </dd> </dt> <dt id="ini.upload-tmp-dir"> <span class="term"> <i><tt class="parameter">upload_tmp_dir</tt></i> <a href="language.types.string.html" class="type string">string</a> </span> <dd> <p class="para"> The temporary directory used for storing files when doing file upload. Must be writable by whatever user PHP is running as. If not specified PHP will use the system's default. </p> </dd> </dt> <dt id="ini.upload-max-filesize"> <span class="term"> <i><tt class="parameter">upload_max_filesize</tt></i> <a href="language.types.integer.html" class="type integer">integer</a> </span> <dd> <p class="para"> The maximum size of an uploaded file. </p> <span class="simpara">When an <a href="language.types.integer.html" class="type integer">integer</a> is used, the value is measured in bytes. Shorthand notation, as described in <a href="faq.using.html#faq.using.shorthandbytes" class="link">this FAQ</a>, may also be used.</span> </dd> </dt> </dl> </p> </div> <div id="ini.sql-general" class="section"> <h2 class="title">General SQL</h2> <p class="para"> <table border="5"> <caption><b>General SQL Configuration Options</b></caption> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Name</th> <th colspan="1">Default</th> <th colspan="1">Changeable</th> <th colspan="1">Changelog</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">sql.safe_mode</td> <td colspan="1" rowspan="1" align="left">"0"</td> <td colspan="1" rowspan="1" align="left">PHP_INI_SYSTEM</td> <td class="empty"> </td> </tr> </tbody> </colgroup> </table> </p> <p class="para">Here's a short explanation ofthe configuration directives.</p> <p class="para"> <dl> <dt id="ini.sql.safe-mode"> <span class="term"> <i><tt class="parameter">sql.safe_mode</tt></i> <a href="language.types.boolean.html" class="type boolean">boolean</a> </span> <dd> <p class="para"> If turned on, database connect functions that specify default values will use those values in place of supplied arguments. For default values see connect function documentation for the relevant database. </p> </dd> </dt> </dl> </p> </div> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ini.html">php.ini directives</a></div> <div class="next" style="text-align: right; float: right;"><a href="extensions.html">Extension Categorization</a></div> <div class="up"><a href="ini.html">php.ini directives</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -