some corrections regarding phpinfo() and phpcredits() constants

# and some indentation changes due to XEmacs running wild again


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@36369 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hartmut Holzgraefe 2000-11-22 09:02:12 +00:00
parent 16f28757a5
commit e47bca799f

View file

@ -75,45 +75,45 @@
<tgroup cols="4">
<thead>
<row>
<entry>option</entry>
<entry>ini-parameter</entry>
<entry>default</entry>
<entry>description</entry>
<entry>option</entry>
<entry>ini-parameter</entry>
<entry>default</entry>
<entry>description</entry>
</row>
</thead>
<tbody>
<row>
<entry>ASSERT_ACTIVE</entry>
<entry>assert.active</entry>
<entry>1</entry>
<entry>enable <function>assert</function> evaluation</entry>
<entry>ASSERT_ACTIVE</entry>
<entry>assert.active</entry>
<entry>1</entry>
<entry>enable <function>assert</function> evaluation</entry>
</row>
<row>
<entry>ASSERT_WARNING</entry>
<entry>assert.warning</entry>
<entry>1</entry>
<entry>issue a PHP warning for each failed assertion</entry>
<entry>ASSERT_WARNING</entry>
<entry>assert.warning</entry>
<entry>1</entry>
<entry>issue a PHP warning for each failed assertion</entry>
</row>
<row>
<entry>ASSERT_BAIL</entry>
<entry>assert.bail</entry>
<entry>0</entry>
<entry>terminate execution on failed assertions</entry>
<entry>ASSERT_BAIL</entry>
<entry>assert.bail</entry>
<entry>0</entry>
<entry>terminate execution on failed assertions</entry>
</row>
<row>
<entry>ASSERT_QUIET_EVAL</entry>
<entry>assert.quiet_eval</entry>
<entry>0</entry>
<entry>
disable error_reporting during assertion expression
evaluation
</entry>
<entry>ASSERT_QUIET_EVAL</entry>
<entry>assert.quiet_eval</entry>
<entry>0</entry>
<entry>
disable error_reporting during assertion expression
evaluation
</entry>
</row>
<row>
<entry>ASSERT_CALLBACK</entry>
<entry>assert_callback</entry>
<entry>(null)</entry>
<entry>user function to call on failed assertions</entry>
<entry>ASSERT_CALLBACK</entry>
<entry>assert_callback</entry>
<entry>(null)</entry>
<entry>user function to call on failed assertions</entry>
</row>
</tbody>
</tgroup>
@ -170,7 +170,7 @@
<para>
Loads the PHP extension defined in
<parameter>library</parameter>. See also the <link
linkend="ini.extension-dir">extension_dir</link> configuration
linkend="ini.extension-dir">extension_dir</link> configuration
directive.
</para>
</refsect1>
@ -203,9 +203,9 @@ $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user
You can see a list of all the environmental variables by using
<function>phpinfo</function>. You can find out what many of them
mean by taking a look at the <ulink url="&url.cgispecs;">CGI
specification</ulink>, specifically the <ulink
url="&url.cgispec;">page on
environmental variables</ulink>.
specification</ulink>, specifically the <ulink
url="&url.cgispec;">page on
environmental variables</ulink>.
<note>
<para>
This function does not work in ISAPI mode.
@ -242,7 +242,7 @@ $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user
</simpara>
<simpara>
To check whether the system is using a <link
linkend="configuration.file">configuration file</link>, try
linkend="configuration.file">configuration file</link>, try
retrieving the value of the cfg_file_path configuration
setting. If this is available, a configuration file is being
used.
@ -392,7 +392,7 @@ echo "Last modified: ".date ("F d Y H:i:s.", getlastmod());
</para>
<note>
<simpara>
This function is not supported on Windows systems.
This function is not supported on Windows systems.
</simpara>
</note>
</refsect1>
@ -628,7 +628,7 @@ phpcredits(CREDITS_GENERAL);
<informalexample>
<programlisting role="php">
&lt;?php
phpcredits(CREDITS_GROUP + CREDITS_DOCS + CREDITS_FULLPAGE);
phpcredits(CREDITS_GROUP + CREDITS_DOCS + CREDITS_FULLPAGE);
?&gt;
</programlisting>
</informalexample>
@ -637,16 +637,16 @@ phpcredits(CREDITS_GENERAL);
<informalexample>
<programlisting role="php">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;My credits page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;head&gt;
&lt;title&gt;My credits page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php
// some code of your own
phpcredits(CREDITS_ALL + CREDITS_FULLPAGE);
// some more code
?&gt;
&lt;/body&gt;
// some code of your own
phpcredits(CREDITS_ALL + CREDITS_FULLPAGE);
// some more code
?&gt;
&lt;/body&gt;
&lt;/html&gt;
</programlisting>
</informalexample>
@ -654,56 +654,56 @@ phpcredits(CREDITS_GENERAL);
<para>
</para>
<para>
<table>
<table>
<title>Pre-defined <function>phpcredits</function> flags</title>
<tgroup cols="2">
<thead>
<row>
<entry>name</entry>
<entry>description</entry>
</row>
<row>
<entry>name</entry>
<entry>description</entry>
</row>
</thead>
<tbody>
<row>
<entry>CREDITS_ALL</entry>
<entry>
All the credits, equivalent to using: CREDITS_DOCS + CREDITS_GENERAL +
CREDITS_GROUP + CREDITS_MODULES + CREDITS_FULLPAGE. It generates a
complete stand-alone HTML page with the appropriate tags.
</entry>
</row>
<row>
<entry>CREDITS_DOCS</entry>
<entry>The credits for the documentation team</entry>
</row>
<row>
<entry>CREDITS_FULLPAGE</entry>
<entry>
Usually used in combination with the other flags.
Indicates that the a complete stand-alone HTML page
needs to be printed including the information indicated
by the other flags.
</entry>
</row>
<row>
<entry>CREDITS_GENERAL</entry>
<entry>
General credits: Language design and concept, PHP 4.0 authors
and SAPI module.
</entry>
</row>
<row>
<entry>CREDITS_GROUP</entry>
<entry>A list of the core developers</entry>
</row>
<row>
<entry>CREDITS_MODULES</entry>
<entry>A list of the extension modules for PHP, and their authors</entry>
</row>
<row>
<entry>CREDITS_SAPI</entry>
<entry>This flag is defined but, as of PHP 4.0.1pl2, it is not used</entry>
</row>
<row>
<entry>CREDITS_ALL</entry>
<entry>
All the credits, equivalent to using: CREDITS_DOCS + CREDITS_GENERAL +
CREDITS_GROUP + CREDITS_MODULES + CREDITS_FULLPAGE. It generates a
complete stand-alone HTML page with the appropriate tags.
</entry>
</row>
<row>
<entry>CREDITS_DOCS</entry>
<entry>The credits for the documentation team</entry>
</row>
<row>
<entry>CREDITS_FULLPAGE</entry>
<entry>
Usually used in combination with the other flags.
Indicates that the a complete stand-alone HTML page
needs to be printed including the information indicated
by the other flags.
</entry>
</row>
<row>
<entry>CREDITS_GENERAL</entry>
<entry>
General credits: Language design and concept, PHP 4.0 authors
and SAPI module.
</entry>
</row>
<row>
<entry>CREDITS_GROUP</entry>
<entry>A list of the core developers</entry>
</row>
<row>
<entry>CREDITS_MODULES</entry>
<entry>A list of the extension modules for PHP, and their authors</entry>
</row>
<row>
<entry>CREDITS_SAPI</entry>
<entry>A list of the server API modules for PHP, and their authors</entry>
</row>
</tbody>
</tgroup>
</table>
@ -750,13 +750,6 @@ phpcredits(CREDITS_GENERAL);
<listitem><simpara>INFO_VARIABLES</simpara></listitem>
<listitem><simpara>INFO_LICENSE</simpara></listitem>
<listitem><simpara>INFO_ALL</simpara></listitem>
<listitem><simpara>CREDITS_GROUP</simpara></listitem>
<listitem><simpara>CREDITS_GENERAL</simpara></listitem>
<listitem><simpara>CREDITS_SAPI</simpara></listitem>
<listitem><simpara>CREDITS_MODULES</simpara></listitem>
<listitem><simpara>CREDITS_DOCS</simpara></listitem>
<listitem><simpara>CREDITS_FULLPAGE</simpara></listitem>
<listitem><simpara>CREDITS_ALL</simpara></listitem>
</itemizedlist>
</para>
<para>
@ -852,11 +845,11 @@ echo "Current PHP version: ".phpversion();
<example>
<title><function>Php_sapi_name</function> Example</title>
<programlisting role="php">
$inter_type = php_sapi_name();
if ($inter_type == "cgi")
print "You are using CGI PHP\n";
$sapi_type = php_sapi_name();
if ($sapi_type == "cgi")
print "You are using CGI PHP\n";
else
print "You are not using CGI PHP\n";
print "You are not using CGI PHP\n";
</programlisting>
</example>
</para>
@ -887,9 +880,9 @@ else
<title><function>php_uname</function> Example</title>
<programlisting role="php">
if (substr(php_uname(), 0, 7) == "Windows") {
die("Sorry, this script doesn't run on Windows.\n");
die("Sorry, this script doesn't run on Windows.\n");
}
</programlisting>
</programlisting>
</example>
</para>
</refsect1>
@ -942,7 +935,7 @@ putenv ("UNIQID=$uniqid");
</funcsynopsis>
<simpara>
Set the current active configuration setting of <link
linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>.
linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>.
(0 for off, 1 for on)
</simpara>
<simpara>
@ -970,7 +963,7 @@ putenv ("UNIQID=$uniqid");
reached, the script returns a fatal error. The default limit is
30 seconds or, if it exists, the max_execution_time value defined
in the <link linkend="configuration.file">configuration
file</link>. If seconds is set to zero, no time limit is
file</link>. If seconds is set to zero, no time limit is
imposed.
</simpara>
<simpara>
@ -984,7 +977,7 @@ putenv ("UNIQID=$uniqid");
Note that <function>set_time_limit</function> has no effect when
PHP is running in safe mode. There is no workaround other than
turning off safe mode or changing the time limit in the <link
linkend="configuration.file">configuration file</link>.
linkend="configuration.file">configuration file</link>.
</simpara>
</refsect1>
</refentry>
@ -1047,15 +1040,15 @@ Array
[0] =&gt; xml
[1] =&gt; wddx
[2] =&gt; standard
[3] =&gt; session
[4] =&gt; posix
[5] =&gt; pgsql
[6] =&gt; pcre
[7] =&gt; gd
[8] =&gt; ftp
[9] =&gt; db
[10] =&gt; Calendar
[11] =&gt; bcmath
[3] =&gt; session
[4] =&gt; posix
[5] =&gt; pgsql
[6] =&gt; pcre
[7] =&gt; gd
[8] =&gt; ftp
[9] =&gt; db
[10] =&gt; Calendar
[11] =&gt; bcmath
)
</programlisting>
</informalexample>
@ -1091,7 +1084,7 @@ Array
<programlisting>
print_r (get_extension_funcs (&quot;xml&quot;));
print_r (get_extension_funcs (&quot;gd&quot;));
</programlisting>
</programlisting>
</informalexample>
will print a list of the functions in the modules
<varname>xml</varname> and <varname>gd</varname> respectively.
@ -1136,13 +1129,13 @@ require_once (&quot;local.php&quot;);
require_once (&quot;../inc/global.php&quot;);
for ($i=1; $i&lt;5; $i++)
include &quot;util&quot;.$i.&quot;php&quot;;
include &quot;util&quot;.$i.&quot;php&quot;;
echo &quot;Required_once files\n&quot;;
print_r (get_required_files());
echo &quot;Required_once files\n&quot;;
print_r (get_required_files());
echo &quot;Included_once files\n&quot;;
print_r (get_included_files());
echo &quot;Included_once files\n&quot;;
print_r (get_included_files());
?&gt;
</programlisting>
</example>
@ -1152,8 +1145,8 @@ print_r (get_included_files());
Required_once files
Array
(
[local] =&gt; local.php
[../inc/global] =&gt; /full/path/to/inc/global.php
[local] =&gt; local.php
[../inc/global] =&gt; /full/path/to/inc/global.php
)
Included_once files
@ -1224,21 +1217,21 @@ Array
</refsect1>
</refentry>
</reference>
</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->