jmcastagnetto Mon Mar 19 04:46:22 2001 EDT
Modified files:
/phpdoc/en/functions info.xml
Log:
Added tables of options and where they can be changed (user scripts,
php.ini/httd.conf and/or .htaccess) to the description of ini_set()
This tables are generated using the script mk_ini_set_table.sh
Index: phpdoc/en/functions/info.xml
diff -u phpdoc/en/functions/info.xml:1.41 phpdoc/en/functions/info.xml:1.42
--- phpdoc/en/functions/info.xml:1.41 Fri Mar 16 23:13:33 2001
+++ phpdoc/en/functions/info.xml Mon Mar 19 04:46:22 2001
@@ -592,6 +592,358 @@
value on success, <literal>false</literal> on failure.
</para>
<para>
+ Not all the available options can be changed using
+ <function>ini_set</function>. Below is a table with a list of all
+ option (as of PHP 4.0.5-dev), indicating which ones can be changed/set
+ and at what level.
+ <table>
+ <title>Configuration options</title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Default</entry>
+ <entry>Changeable</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>define_syslog_variables</entry>
+ <entry>"0"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>highlight.bg</entry>
+ <entry>HL_BG_COLOR</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>highlight.comment</entry>
+ <entry>HL_COMMENT_COLOR</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>highlight.default</entry>
+ <entry>HL_DEFAULT_COLOR</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>highlight.html</entry>
+ <entry>HL_HTML_COLOR</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>highlight.keyword</entry>
+ <entry>HL_KEYWORD_COLOR</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>highlight.string</entry>
+ <entry>HL_STRING_COLOR</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>allow_call_time_pass_reference</entry>
+ <entry>"1"</entry>
+ <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry>
+ </row>
+ <row>
+ <entry>asp_tags</entry>
+ <entry>"0"</entry>
+ <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry>
+ </row>
+ <row>
+ <entry>display_errors</entry>
+ <entry>"1"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>display_startup_errors</entry>
+ <entry>"0"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>enable_dl</entry>
+ <entry>"1"</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>error_append_string</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>error_prepend_string</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>expose_php</entry>
+ <entry>"1"</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>html_errors</entry>
+ <entry>"1"</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>ignore_user_abort</entry>
+ <entry>"0"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>implicit_flush</entry>
+ <entry>"0"</entry>
+ <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>log_errors</entry>
+ <entry>"0"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>magic_quotes_gpc</entry>
+ <entry>"1"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>magic_quotes_runtime</entry>
+ <entry>"0"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>magic_quotes_sybase</entry>
+ <entry>"0"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>output_buffering</entry>
+ <entry>"0"</entry>
+ <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>output_handler</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>register_argc_argv</entry>
+ <entry>"1"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>register_globals</entry>
+ <entry>"1"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>safe_mode</entry>
+ <entry>"0"</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>short_open_tag</entry>
+ <entry>"1"</entry>
+ <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry>
+ </row>
+ <row>
+ <entry>sql.safe_mode</entry>
+ <entry>"0"</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>track_errors</entry>
+ <entry>"0"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>y2k_compliance</entry>
+ <entry>"0"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>arg_separator</entry>
+ <entry>"&"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>auto_append_file</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>auto_prepend_file</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>doc_root</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>default_charset</entry>
+ <entry>SAPI_DEFAULT_CHARSET</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>default_mimetype</entry>
+ <entry>SAPI_DEFAULT_MIMETYPE</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>error_log</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>extension_dir</entry>
+ <entry>PHP_EXTENSION_DIR</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>gpc_order</entry>
+ <entry>"GPC"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>include_path</entry>
+ <entry>PHP_INCLUDE_PATH</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>max_execution_time</entry>
+ <entry>"30"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>open_basedir</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>safe_mode_exec_dir</entry>
+ <entry>"1"</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>upload_max_filesize</entry>
+ <entry>"2M"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>file_uploads</entry>
+ <entry>"1"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>post_max_size</entry>
+ <entry>"8M"</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>upload_tmp_dir</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>user_dir</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>variables_order</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>SMTP</entry>
+ <entry>"localhost"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>browscap</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>error_reporting</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>memory_limit</entry>
+ <entry>"8M"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>precision</entry>
+ <entry>"14"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>sendmail_from</entry>
+ <entry>NULL</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ <row>
+ <entry>sendmail_path</entry>
+ <entry>DEFAULT_SENDMAIL_PATH</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>disable_functions</entry>
+ <entry>""</entry>
+ <entry>PHP_INI_SYSTEM</entry>
+ </row>
+ <row>
+ <entry>allow_url_fopen</entry>
+ <entry>"1"</entry>
+ <entry>PHP_INI_ALL</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
+ <para>
+ <table>
+ <title>Definition of PHP_INI_* constants</title>
+ <tgroup cols="3">
+ <thead>
+ <row>
+ <entry>Constant</entry>
+ <entry>Value</entry>
+ <entry>Meaning</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>PHP_INI_USER</entry>
+ <entry>1</entry>
+ <entry>Entry can be set in user scripts</entry>
+ </row>
+ <row>
+ <entry>PHP_INI_PERDIR</entry>
+ <entry>2</entry>
+ <entry>Entry can be set in <filename>.htaccess</filename></entry>
+ </row>
+ <row>
+ <entry>PHP_INI_SYSTEM</entry>
+ <entry>4</entry>
+ <entry>Entry can be set in <filename>php.ini</filename> or
+ <filename>httpd.conf</filename></entry>
+ </row>
+ <row>
+ <entry>PHP_INI_ALL</entry>
+ <entry>7</entry>
+ <entry>Entry can be set anywhere</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
+ <para>
See also <function>ini_alter</function>,
<function>ini_get</function>,
<function>ini_restore</function>