Moving things around, to get alphabetical order

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@61975 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Gabor Hojtsy 2001-11-11 12:13:02 +00:00
parent 3055bcfbdf
commit 0f44bdbf60

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.70 $ -->
<!-- $Revision: 1.71 $ -->
<reference id="ref.info">
<title>PHP options &amp; information</title>
<titleabbrev>PHP options/info</titleabbrev>
@ -328,6 +328,229 @@ $ip = getenv ("REMOTE_ADDR"); // get the ip number of the user
</refsect1>
</refentry>
<refentry id="function.get-defined-constants">
<refnamediv>
<refname>get_defined_constants</refname>
<refpurpose>
Returns an associative array with the names of all the constants
and their values.
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>array <function>get_defined_constants</function></funcdef>
<void/>
</funcprototype>
</funcsynopsis>
<para>
This function returns the names and values of all the constants
currently defined. This includes those created by extensions as
well as those created with the <function>define</function>
function.
</para>
<para>
For example the line below
<informalexample>
<programlisting>
print_r (get_defined_constants());
</programlisting>
</informalexample>
will print a list like:
<informalexample>
<programlisting>
Array
(
[E_ERROR] =&gt; 1
[E_WARNING] =&gt; 2
[E_PARSE] =&gt; 4
[E_NOTICE] =&gt; 8
[E_CORE_ERROR] =&gt; 16
[E_CORE_WARNING] =&gt; 32
[E_COMPILE_ERROR] =&gt; 64
[E_COMPILE_WARNING] =&gt; 128
[E_USER_ERROR] =&gt; 256
[E_USER_WARNING] =&gt; 512
[E_USER_NOTICE] =&gt; 1024
[E_ALL] =&gt; 2047
[TRUE] =&gt; 1
)
</programlisting>
</informalexample>
</para>
<para>
See also
<function>get_loaded_extensions</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.get-extension-funcs">
<refnamediv>
<refname>get_extension_funcs</refname>
<refpurpose>
Returns an array with the names of the functions of a module
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>array <function>get_extension_funcs</function></funcdef>
<paramdef>string <parameter>module_name</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
This function returns the names of all the functions defined in
the module indicated by <parameter>module_name</parameter>.
</para>
<para>
For example the lines below
<informalexample>
<programlisting>
print_r (get_extension_funcs (&quot;xml&quot;));
print_r (get_extension_funcs (&quot;gd&quot;));
</programlisting>
</informalexample>
will print a list of the functions in the modules
<varname>xml</varname> and <varname>gd</varname> respectively.
</para>
<para>
See also: <function>get_loaded_extensions</function>
</para>
</refsect1>
</refentry>
<refentry id="function.get-included-files">
<refnamediv>
<refname>get_included_files</refname>
<refpurpose>
Returns an array with the names of included or required files
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>array <function>get_included_files</function></funcdef>
<void/>
</funcprototype>
</funcsynopsis>
<para>
Returns an array of the names of all files that have been
included using <function>include</function>,
<function>include_once</function>, <function>require</function>
or <function>require_once</function>.
</para>
<para>
Files that are included or required multiple times only show up
once in the returned array.
</para>
<para>
<example>
<title><function>get_included_files</function> Example</title>
<programlisting role="php">
&lt;?php
include("test1.php");
include_once("test2.php");
require("test3.php");
require_once("test4.php");
$included_files = get_included_files();
foreach($included_files as $filename) {
echo "$filename\n";
}
?&gt;
</programlisting>
</example>
will generate the following output:
<informalexample>
<programlisting>
test1.php
test2.php
test3.php
test4.php
</programlisting>
</informalexample>
</para>
<note>
<para>
In PHP 4.0.1pl2 and previous versions
<function>get_included_files</function> assumed that the
required files ended in the extension <literal>.php</literal>;
other extensions would not be returned. The array returned by
<function>get_included_files</function> was an associative array
and only listed files included by <function>include</function>
and <function>include_once</function>.
</para>
</note>
<para>
See also: <function>include</function>,
<function>include_once</function>, <function>require</function>,
<function>require_once</function> and
<function>get_required_files</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.get-loaded-extensions">
<refnamediv>
<refname>get_loaded_extensions</refname>
<refpurpose>
Returns an array with the names of all modules compiled and
loaded
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>array <function>get_loaded_extensions</function></funcdef>
<void/>
</funcprototype>
</funcsynopsis>
<para>
This function returns the names of all the modules compiled and
loaded in the PHP interpreter.
</para>
<para>
For example the line below
<informalexample>
<programlisting>
print_r (get_loaded_extensions());
</programlisting>
</informalexample>
will print a list like:
<informalexample>
<programlisting>
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
)
</programlisting>
</informalexample>
</para>
<para>
See also: <function>get_extension_funcs</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.get-magic-quotes-gpc">
<refnamediv>
<refname>get_magic_quotes_gpc</refname>
@ -442,11 +665,7 @@ echo "Last modified: ".date ("F d Y H:i:s.", getlastmod());
<function>getmypid</function>, and
<function>getlastmod</function>.
</para>
<note>
<simpara>
This function is not supported on Windows systems.
</simpara>
</note>
&note.no.windows;
</refsect1>
</refentry>
@ -507,6 +726,43 @@ echo "Last modified: ".date ("F d Y H:i:s.", getlastmod());
</refsect1>
</refentry>
<refentry id="function.get-required-files">
<refnamediv>
<refname>get_required_files</refname>
<refpurpose>
Returns an array with the names of included or required files
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>array <function>get_required_files</function></funcdef>
<void/>
</funcprototype>
</funcsynopsis>
<para>
As of PHP 4.0.4, this function is an alias for
<function>get_included_files</function>
</para>
<para>
In PHP 4.0.1pl2 and previous versions
<function>get_required_files</function> assumed that the required
files ended in the extension <literal>.php</literal>, other
extensions would not be returned. The array returned by
<function>get_required_files</function> was an associative array
and only listed files included by <function>require</function> and
<function>require_once</function>.
</para>
<para>
See also: <function>require</function>,
<function>require_once</function>, <function>include</function>,
<function>include_once</function> and
<function>get_included_files</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.getrusage">
<refnamediv>
<refname>getrusage</refname>
@ -1490,266 +1746,6 @@ putenv ("UNIQID=$uniqid");
</refsect1>
</refentry>
<refentry id="function.get-defined-constants">
<refnamediv>
<refname>get_defined_constants</refname>
<refpurpose>
Returns an associative array with the names of all the constants
and their values.
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>array <function>get_defined_constants</function></funcdef>
<void/>
</funcprototype>
</funcsynopsis>
<para>
This function returns the names and values of all the constants
currently defined. This includes those created by extensions as
well as those created with the <function>define</function>
function.
</para>
<para>
For example the line below
<informalexample>
<programlisting>
print_r (get_defined_constants());
</programlisting>
</informalexample>
will print a list like:
<informalexample>
<programlisting>
Array
(
[E_ERROR] =&gt; 1
[E_WARNING] =&gt; 2
[E_PARSE] =&gt; 4
[E_NOTICE] =&gt; 8
[E_CORE_ERROR] =&gt; 16
[E_CORE_WARNING] =&gt; 32
[E_COMPILE_ERROR] =&gt; 64
[E_COMPILE_WARNING] =&gt; 128
[E_USER_ERROR] =&gt; 256
[E_USER_WARNING] =&gt; 512
[E_USER_NOTICE] =&gt; 1024
[E_ALL] =&gt; 2047
[TRUE] =&gt; 1
)
</programlisting>
</informalexample>
</para>
<para>
See also
<function>get_loaded_extensions</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.get-loaded-extensions">
<refnamediv>
<refname>get_loaded_extensions</refname>
<refpurpose>
Returns an array with the names of all modules compiled and
loaded
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>array <function>get_loaded_extensions</function></funcdef>
<void/>
</funcprototype>
</funcsynopsis>
<para>
This function returns the names of all the modules compiled and
loaded in the PHP interpreter.
</para>
<para>
For example the line below
<informalexample>
<programlisting>
print_r (get_loaded_extensions());
</programlisting>
</informalexample>
will print a list like:
<informalexample>
<programlisting>
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
)
</programlisting>
</informalexample>
</para>
<para>
See also: <function>get_extension_funcs</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.get-extension-funcs">
<refnamediv>
<refname>get_extension_funcs</refname>
<refpurpose>
Returns an array with the names of the functions of a module
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>array <function>get_extension_funcs</function></funcdef>
<paramdef>string <parameter>module_name</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<para>
This function returns the names of all the functions defined in
the module indicated by <parameter>module_name</parameter>.
</para>
<para>
For example the lines below
<informalexample>
<programlisting>
print_r (get_extension_funcs (&quot;xml&quot;));
print_r (get_extension_funcs (&quot;gd&quot;));
</programlisting>
</informalexample>
will print a list of the functions in the modules
<varname>xml</varname> and <varname>gd</varname> respectively.
</para>
<para>
See also: <function>get_loaded_extensions</function>
</para>
</refsect1>
</refentry>
<refentry id="function.get-required-files">
<refnamediv>
<refname>get_required_files</refname>
<refpurpose>
Returns an array with the names of included or required files
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>array <function>get_required_files</function></funcdef>
<void/>
</funcprototype>
</funcsynopsis>
<para>
As of PHP 4.0.4, this function is an alias for
<function>get_included_files</function>
</para>
<para>
In PHP 4.0.1pl2 and previous versions
<function>get_required_files</function> assumed that the required
files ended in the extension <literal>.php</literal>, other
extensions would not be returned. The array returned by
<function>get_required_files</function> was an associative array
and only listed files included by <function>require</function> and
<function>require_once</function>.
</para>
<para>
See also: <function>require</function>,
<function>require_once</function>, <function>include</function>,
<function>include_once</function> and
<function>get_included_files</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.get-included-files">
<refnamediv>
<refname>get_included_files</refname>
<refpurpose>
Returns an array with the names of included or required files
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcprototype>
<funcdef>array <function>get_included_files</function></funcdef>
<void/>
</funcprototype>
</funcsynopsis>
<para>
Returns an array of the names of all files that have been
included using <function>include</function>,
<function>include_once</function>, <function>require</function>
or <function>require_once</function>.
</para>
<para>
Files that are included or required multiple times only show up
once in the returned array.
</para>
<para>
<example>
<title><function>get_included_files</function> Example</title>
<programlisting role="php">
&lt;?php
include("test1.php");
include_once("test2.php");
require("test3.php");
require_once("test4.php");
$included_files = get_included_files();
foreach($included_files as $filename) {
echo "$filename\n";
}
?&gt;
</programlisting>
</example>
will generate the following output:
<informalexample>
<programlisting>
test1.php
test2.php
test3.php
test4.php
</programlisting>
</informalexample>
</para>
<note>
<para>
In PHP 4.0.1pl2 and previous versions
<function>get_included_files</function> assumed that the
required files ended in the extension <literal>.php</literal>;
other extensions would not be returned. The array returned by
<function>get_included_files</function> was an associative array
and only listed files included by <function>include</function>
and <function>include_once</function>.
</para>
</note>
<para>
See also: <function>include</function>,
<function>include_once</function>, <function>require</function>,
<function>require_once</function> and
<function>get_required_files</function>.
</para>
</refsect1>
</refentry>
<refentry id="function.zend-version">
<refnamediv>
<refname>zend_version</refname>