mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
3055bcfbdf
commit
0f44bdbf60
1 changed files with 262 additions and 266 deletions
|
@ -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 & 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] => 1
|
||||
[E_WARNING] => 2
|
||||
[E_PARSE] => 4
|
||||
[E_NOTICE] => 8
|
||||
[E_CORE_ERROR] => 16
|
||||
[E_CORE_WARNING] => 32
|
||||
[E_COMPILE_ERROR] => 64
|
||||
[E_COMPILE_WARNING] => 128
|
||||
[E_USER_ERROR] => 256
|
||||
[E_USER_WARNING] => 512
|
||||
[E_USER_NOTICE] => 1024
|
||||
[E_ALL] => 2047
|
||||
[TRUE] => 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 ("xml"));
|
||||
print_r (get_extension_funcs ("gd"));
|
||||
</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">
|
||||
<?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";
|
||||
}
|
||||
|
||||
?>
|
||||
</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] => xml
|
||||
[1] => wddx
|
||||
[2] => standard
|
||||
[3] => session
|
||||
[4] => posix
|
||||
[5] => pgsql
|
||||
[6] => pcre
|
||||
[7] => gd
|
||||
[8] => ftp
|
||||
[9] => db
|
||||
[10] => Calendar
|
||||
[11] => 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>
|
||||
¬e.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] => 1
|
||||
[E_WARNING] => 2
|
||||
[E_PARSE] => 4
|
||||
[E_NOTICE] => 8
|
||||
[E_CORE_ERROR] => 16
|
||||
[E_CORE_WARNING] => 32
|
||||
[E_COMPILE_ERROR] => 64
|
||||
[E_COMPILE_WARNING] => 128
|
||||
[E_USER_ERROR] => 256
|
||||
[E_USER_WARNING] => 512
|
||||
[E_USER_NOTICE] => 1024
|
||||
[E_ALL] => 2047
|
||||
[TRUE] => 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] => xml
|
||||
[1] => wddx
|
||||
[2] => standard
|
||||
[3] => session
|
||||
[4] => posix
|
||||
[5] => pgsql
|
||||
[6] => pcre
|
||||
[7] => gd
|
||||
[8] => ftp
|
||||
[9] => db
|
||||
[10] => Calendar
|
||||
[11] => 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 ("xml"));
|
||||
print_r (get_extension_funcs ("gd"));
|
||||
</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">
|
||||
<?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";
|
||||
}
|
||||
|
||||
?>
|
||||
</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>
|
||||
|
|
Loading…
Reference in a new issue