<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML ><HEAD ><TITLE >PHP Options&Information</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual PHP" HREF="index.html"><LINK REL="UP" TITLE="Documentaþia funcþiilor" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="pfpro_version" HREF="function.pfpro-version.html"><LINK REL="NEXT" TITLE="assert_options" HREF="function.assert-options.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-2"></HEAD ><BODY CLASS="reference" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.pfpro-version.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.assert-options.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.info" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >LXXXV. PHP Options&Information</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN90213" ></A ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="info.intro" >Introducere</A ></H1 ><P > This functions enable you to get a lot of information about PHP itself, e.g. runtime configuration, loaded extensions, version and much more. You'll also find functions to set options for your running PHP. The probably best known function of PHP - <A HREF="function.phpinfo.html" ><B CLASS="function" >phpinfo()</B ></A > - can be found here. </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="info.requirements" >Necesitãþi</A ></H1 ><P >Aceste funcþii sunt disponibile ca pãrþi ale modulului standard care este întotdeauna disponibil.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="info.installation" >Instalare</A ></H1 ><P >Nu este necesarã o instalare a acestor funcþii, ele fac parte din PHP.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="info.configuration" >Configurare la rulare</A ></H1 ><P > The behaviour of these functions is affected by settings in <TT CLASS="filename" >php.ini</TT >. </P ><P > <DIV CLASS="table" ><A NAME="AEN90229" ></A ><P ><B >Tabel 1. PHP Options/Inf Configuration Options</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><THEAD ><TR ><TH >Name</TH ><TH >Default</TH ><TH >Changeable</TH ></TR ></THEAD ><TBODY ><TR ><TD >assert.active</TD ><TD >"1"</TD ><TD >PHP_INI_ALL</TD ></TR ><TR ><TD >assert.bail</TD ><TD >"0"</TD ><TD >PHP_INI_ALL</TD ></TR ><TR ><TD >assert.warning</TD ><TD >"1"</TD ><TD >PHP_INI_ALL</TD ></TR ><TR ><TD >assert.callback</TD ><TD >NULL</TD ><TD >PHP_INI_ALL</TD ></TR ><TR ><TD >assert.quiet_eval</TD ><TD >"0"</TD ><TD >PHP_INI_ALL</TD ></TR ><TR ><TD >enable_dl</TD ><TD >"1"</TD ><TD >PHP_INI_SYSTEM</TD ></TR ><TR ><TD >max_execution_time</TD ><TD >"30"</TD ><TD >PHP_INI_ALL</TD ></TR ><TR ><TD >max_input_time</TD ><TD >"60"</TD ><TD >PHP_INI_ALL</TD ></TR ><TR ><TD >magic_quotes_gpc</TD ><TD >"1"</TD ><TD >PHP_INI_PERDIR|PHP_INI_SYSTEM</TD ></TR ><TR ><TD >magic_quotes_runtime</TD ><TD >"0"</TD ><TD >PHP_INI_ALL</TD ></TR ></TBODY ></TABLE ></DIV > For further details and definition of the PHP_INI_* constants see <A HREF="function.ini-set.html" ><B CLASS="function" >ini_set()</B ></A >. </P ><P >Here's a short explanation of the configuration directives.</P ><P > <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><A NAME="ini.assert.active" ></A ><VAR CLASS="parameter" >assert.active</VAR > <A HREF="language.types.boolean.html" ><B CLASS="type" >boolean</B ></A ></DT ><DD ><P > Enable <A HREF="function.assert.html" ><B CLASS="function" >assert()</B ></A > evaluation. </P ></DD ><DT ><A NAME="ini.assert.bail" ></A ><VAR CLASS="parameter" >assert.bail</VAR > <A HREF="language.types.boolean.html" ><B CLASS="type" >boolean</B ></A ></DT ><DD ><P > Terminate script execution on failed assertions. </P ></DD ><DT ><A NAME="ini.assert.warning" ></A ><VAR CLASS="parameter" >assert.warning</VAR > <A HREF="language.types.boolean.html" ><B CLASS="type" >boolean</B ></A ></DT ><DD ><P > Issue a <VAR CLASS="literal" >PHP</VAR > warning for each failed assertion. </P ></DD ><DT ><A NAME="ini.assert.callback" ></A ><VAR CLASS="parameter" >assert.callback</VAR > <A HREF="language.types.string.html" ><B CLASS="type" >string</B ></A ></DT ><DD ><P > user function to call on failed assertions </P ></DD ><DT ><A NAME="ini.assert.quiet-eval" ></A ><VAR CLASS="parameter" >assert.quiet_eval</VAR > <A HREF="language.types.boolean.html" ><B CLASS="type" >boolean</B ></A ></DT ><DD ><P > Use the current setting of <A HREF="function.error-reporting.html" ><B CLASS="function" >error_reporting()</B ></A > during assertion expression evaluation. If enabled, no errors are shown (implicit error_reporting(0)) while evaluation. If disabled, errors are shown according to the settings of <A HREF="function.error-reporting.html" ><B CLASS="function" >error_reporting()</B ></A > </P ></DD ><DT ><A NAME="ini.enable-dl" ></A ><VAR CLASS="parameter" >enable_dl</VAR > <A HREF="language.types.boolean.html" ><B CLASS="type" >boolean</B ></A ></DT ><DD ><P > This directive is really only useful in the Apache module version of <VAR CLASS="literal" >PHP</VAR >. You can turn dynamic loading of <VAR CLASS="literal" >PHP</VAR > extensions with <A HREF="function.dl.html" ><B CLASS="function" >dl()</B ></A > on and off per virtual server or per directory. </P ><P > The main reason for turning dynamic loading off is security. With dynamic loading, it's possible to ignore all <A HREF="features.safe-mode.html#ini.open-basedir" >open_basedir</A > restrictions. The default is to allow dynamic loading, except when using <A HREF="features.safe-mode.html#ini.safe-mode" >safe mode</A >. In <A HREF="features.safe-mode.html#ini.safe-mode" >safe mode</A >, it's always impossible to use <A HREF="function.dl.html" ><B CLASS="function" >dl()</B ></A >. </P ></DD ><DT ><A NAME="ini.max-execution-time" ></A ><VAR CLASS="parameter" >max_execution_time</VAR > <A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A ></DT ><DD ><P > This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. This helps prevent poorly written scripts from tying up the server. The default setting is <VAR CLASS="literal" >30</VAR >. </P ><P > The maximum execution time is not affected by system calls, stream operations etc. Please see the <A HREF="function.set-time-limit.html" ><B CLASS="function" >set_time_limit()</B ></A > function for more details. </P ><P > You can not change this setting with <A HREF="function.ini-set.html" ><B CLASS="function" >ini_set()</B ></A > when running in <A HREF="features.safe-mode.html#ini.safe-mode" >safe mode</A >. The only workaround is to turn off safe mode or by changing the time limit in the <TT CLASS="filename" >php.ini</TT >. </P ></DD ><DT ><A NAME="ini.max-input-time" ></A ><VAR CLASS="parameter" >max_input_time</VAR > <A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A ></DT ><DD ><P > This sets the maximum time in seconds a script is allowed to receive input data, like POST, GET and file uploads. The default setting is <VAR CLASS="literal" >60</VAR >. </P ></DD ><DT ><A NAME="ini.magic-quotes-gpc" ></A ><VAR CLASS="parameter" >magic_quotes_gpc</VAR > <A HREF="language.types.boolean.html" ><B CLASS="type" >boolean</B ></A ></DT ><DD ><P > Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped with a backslash automatically. </P ><DIV CLASS="note" ><BLOCKQUOTE CLASS="note" ><P ><B >Notã: </B > If the <A HREF="ref.sybase.html#ini.magic-quotes-sybase" > magic_quotes_sybase</A > directive is also ON it will completely override magic_quotes_gpc. Having both directives enabled means only single quotes are escaped as <SPAN CLASS="emphasis" ><I CLASS="emphasis" >''</I ></SPAN >. Double quotes, backslashes and NUL's will remain untouched and unescaped. </P ></BLOCKQUOTE ></DIV ><P > See also <A HREF="function.get-magic-quotes-gpc.html" ><B CLASS="function" >get_magic_quotes_gpc()</B ></A > </P ></DD ><DT ><A NAME="ini.magic-quotes-runtime" ></A ><VAR CLASS="parameter" >magic_quotes_runtime</VAR > <A HREF="language.types.boolean.html" ><B CLASS="type" >boolean</B ></A ></DT ><DD ><P > If <VAR CLASS="parameter" >magic_quotes_runtime</VAR > is enabled, most functions that return data from any sort of external source including databases and text files will have quotes escaped with a backslash. If <A HREF="ref.sybase.html#ini.magic-quotes-sybase" >magic_quotes_sybase</A > is also on, a single-quote is escaped with a single-quote instead of a backslash. </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="info.resources" >Tipuri de resurse</A ></H1 ><P >Aceastã extensie nu defineºte tipuri de resurse.</P ></DIV ><DIV CLASS="section" ><H1 CLASS="section" ><A NAME="info.constants" >Constante predefinite</A ></H1 ><P > The constants below are always available as part of the PHP core. </P ><DIV CLASS="table" ><A NAME="AEN90376" ></A ><P ><B >Tabel 2. Pre-defined <A HREF="function.phpcredits.html" ><B CLASS="function" >phpcredits()</B ></A > constants</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><THEAD ><TR ><TH >Constant</TH ><TH >Value</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >CREDITS_GROUP</TD ><TD >1</TD ><TD >A list of the core developers</TD ></TR ><TR ><TD >CREDITS_GENERAL</TD ><TD >2</TD ><TD > General credits: Language design and concept, PHP 4.0 authors and SAPI module. </TD ></TR ><TR ><TD >CREDITS_SAPI</TD ><TD >4</TD ><TD > A list of the server API modules for PHP, and their authors. </TD ></TR ><TR ><TD >CREDITS_MODULES</TD ><TD >8</TD ><TD > A list of the extension modules for PHP, and their authors. </TD ></TR ><TR ><TD >CREDITS_DOCS</TD ><TD >16</TD ><TD > The credits for the documentation team. </TD ></TR ><TR ><TD >CREDITS_FULLPAGE</TD ><TD >32</TD ><TD > 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. </TD ></TR ><TR ><TD >CREDITS_QA</TD ><TD >64</TD ><TD > The credits for the quality assurance team. </TD ></TR ><TR ><TD >CREDITS_ALL</TD ><TD >-1</TD ><TD > All the credits, equivalent to using: CREDITS_DOCS + CREDITS_GENERAL + CREDITS_GROUP + CREDITS_MODULES + CREDITS_QA CREDITS_FULLPAGE. It generates a complete stand-alone HTML page with the appropriate tags. This is the default value. </TD ></TR ></TBODY ></TABLE ></DIV ><DIV CLASS="table" ><A NAME="AEN90418" ></A ><P ><B >Tabel 3. <A HREF="function.phpinfo.html" ><B CLASS="function" >phpinfo()</B ></A > constants</B ></P ><TABLE BORDER="1" CLASS="CALSTABLE" ><COL><COL><COL><THEAD ><TR ><TH >Constant</TH ><TH >Value</TH ><TH >Description</TH ></TR ></THEAD ><TBODY ><TR ><TD >INFO_GENERAL</TD ><TD >1</TD ><TD > The configuration line, <TT CLASS="filename" >php.ini</TT > location, build date, Web Server, System and more. </TD ></TR ><TR ><TD >INFO_CREDITS</TD ><TD >2</TD ><TD > PHP 4 Credits. See also <A HREF="function.phpcredits.html" ><B CLASS="function" >phpcredits()</B ></A >. </TD ></TR ><TR ><TD >INFO_CONFIGURATION</TD ><TD >4</TD ><TD > Current Local and Master values for PHP directives. See also <A HREF="function.ini-get.html" ><B CLASS="function" >ini_get()</B ></A >. </TD ></TR ><TR ><TD >INFO_MODULES</TD ><TD >8</TD ><TD > Loaded modules and their respective settings. </TD ></TR ><TR ><TD >INFO_ENVIRONMENT</TD ><TD >16</TD ><TD > Environment Variable information that's also available in <VAR CLASS="varname" >$_ENV</VAR >. </TD ></TR ><TR ><TD >INFO_VARIABLES</TD ><TD >32</TD ><TD > Shows all <A HREF="language.variables.predefined.html" > predefined variables</A > from EGPCS (Environment, GET, POST, Cookie, Server). </TD ></TR ><TR ><TD >INFO_LICENSE</TD ><TD >64</TD ><TD > PHP License information. See also the <A HREF="http://www.php.net/license/" TARGET="_top" >license faq</A >. </TD ></TR ><TR ><TD >INFO_ALL</TD ><TD >-1</TD ><TD > Shows all of the above. This is the default value. </TD ></TR ></TBODY ></TABLE ></DIV ><P ></P ><DIV CLASS="variablelist" ><DL ><DT ><TT CLASS="constant" ><B >ASSERT_ACTIVE</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >ASSERT_CALLBACK</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >ASSERT_BAIL</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >ASSERT_WARNING</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ><DT ><TT CLASS="constant" ><B >ASSERT_QUIET_EVAL</B ></TT > (<A HREF="language.types.integer.html" ><B CLASS="type" >integer</B ></A >)</DT ><DD ><P > </P ></DD ></DL ></DIV ></DIV ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Cuprins</B ></DT ><DT ><A HREF="function.assert-options.html" >assert_options</A > -- Set/get the various assert flags</DT ><DT ><A HREF="function.assert.html" >assert</A > -- Checks if assertion is <TT CLASS="constant" ><B >FALSE</B ></TT ></DT ><DT ><A HREF="function.dl.html" >dl</A > -- Loads a PHP extension at runtime</DT ><DT ><A HREF="function.extension-loaded.html" >extension_loaded</A > -- Find out whether an extension is loaded</DT ><DT ><A HREF="function.get-cfg-var.html" >get_cfg_var</A > -- Gets the value of a PHP configuration option </DT ><DT ><A HREF="function.get-current-user.html" >get_current_user</A > -- Gets the name of the owner of the current PHP script </DT ><DT ><A HREF="function.get-defined-constants.html" >get_defined_constants</A > -- Returns an associative array with the names of all the constants and their values </DT ><DT ><A HREF="function.get-extension-funcs.html" >get_extension_funcs</A > -- Returns an array with the names of the functions of a module </DT ><DT ><A HREF="function.get-include-path.html" >get_include_path</A > -- Gets the current include_path configuration option </DT ><DT ><A HREF="function.get-included-files.html" >get_included_files</A > -- Returns an array with the names of included or required files </DT ><DT ><A HREF="function.get-loaded-extensions.html" >get_loaded_extensions</A > -- Returns an array with the names of all modules compiled and loaded </DT ><DT ><A HREF="function.get-magic-quotes-gpc.html" >get_magic_quotes_gpc</A > -- Gets the current configuration setting of magic quotes gpc </DT ><DT ><A HREF="function.get-magic-quotes-runtime.html" >get_magic_quotes_runtime</A > -- Gets the current active configuration setting of magic_quotes_runtime </DT ><DT ><A HREF="function.get-required-files.html" >get_required_files</A > -- Alias of <A HREF="function.get-included-files.html" ><B CLASS="function" >get_included_files()</B ></A ></DT ><DT ><A HREF="function.getenv.html" >getenv</A > -- Gets the value of an environment variable</DT ><DT ><A HREF="function.getlastmod.html" >getlastmod</A > -- Gets time of last page modification</DT ><DT ><A HREF="function.getmygid.html" >getmygid</A > -- Get PHP script owner's GID</DT ><DT ><A HREF="function.getmyinode.html" >getmyinode</A > -- Gets the inode of the current script</DT ><DT ><A HREF="function.getmypid.html" >getmypid</A > -- Gets PHP's process ID</DT ><DT ><A HREF="function.getmyuid.html" >getmyuid</A > -- Gets PHP script owner's UID</DT ><DT ><A HREF="function.getopt.html" >getopt</A > -- Gets options from the command line argument list</DT ><DT ><A HREF="function.getrusage.html" >getrusage</A > -- Gets the current resource usages</DT ><DT ><A HREF="function.ini-alter.html" >ini_alter</A > -- Alias of <A HREF="function.ini-set.html" ><B CLASS="function" >ini_set()</B ></A ></DT ><DT ><A HREF="function.ini-get-all.html" >ini_get_all</A > -- Gets all configuration options</DT ><DT ><A HREF="function.ini-get.html" >ini_get</A > -- Gets the value of a configuration option</DT ><DT ><A HREF="function.ini-restore.html" >ini_restore</A > -- Restores the value of a configuration option</DT ><DT ><A HREF="function.ini-set.html" >ini_set</A > -- Sets the value of a configuration option</DT ><DT ><A HREF="function.main.html" >main</A > -- Dummy for <B CLASS="function" >main()</B ></DT ><DT ><A HREF="function.memory-get-usage.html" >memory_get_usage</A > -- Returns the amount of memory allocated to PHP</DT ><DT ><A HREF="function.php-ini-scanned-files.html" >php_ini_scanned_files</A > -- Return a list of .ini files parsed from the additional ini dir</DT ><DT ><A HREF="function.php-logo-guid.html" >php_logo_guid</A > -- Gets the logo guid</DT ><DT ><A HREF="function.php-sapi-name.html" >php_sapi_name</A > -- Returns the type of interface between web server and PHP </DT ><DT ><A HREF="function.php-uname.html" >php_uname</A > -- Returns information about the operating system PHP was built on </DT ><DT ><A HREF="function.phpcredits.html" >phpcredits</A > -- Prints out the credits for PHP</DT ><DT ><A HREF="function.phpinfo.html" >phpinfo</A > -- Outputs lots of PHP information</DT ><DT ><A HREF="function.phpversion.html" >phpversion</A > -- Gets the current PHP version</DT ><DT ><A HREF="function.putenv.html" >putenv</A > -- Sets the value of an environment variable</DT ><DT ><A HREF="function.restore-include-path.html" >restore_include_path</A > -- Restores the value of the include_path configuration option </DT ><DT ><A HREF="function.set-include-path.html" >set_include_path</A > -- Sets the include_path configuration option </DT ><DT ><A HREF="function.set-magic-quotes-runtime.html" >set_magic_quotes_runtime</A > -- Sets the current active configuration setting of magic_quotes_runtime </DT ><DT ><A HREF="function.set-time-limit.html" >set_time_limit</A > -- Limits the maximum execution time</DT ><DT ><A HREF="function.version-compare.html" >version_compare</A > -- Compares two "PHP-standardized" version number strings </DT ><DT ><A HREF="function.zend-logo-guid.html" >zend_logo_guid</A > -- Gets the Zend guid</DT ><DT ><A HREF="function.zend-version.html" >zend_version</A > -- Gets the version of the current Zend engine</DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.pfpro-version.html" ACCESSKEY="P" >Înapoi</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Acasã</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.assert-options.html" ACCESSKEY="N" >Înainte</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >pfpro_version</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" ACCESSKEY="U" >Sus</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >assert_options</TD ></TR ></TABLE ></DIV ></BODY ></HTML >