ini_setPodręcznik PHPPoprzedniNastępnyini_set (PHP 4 >= 4.0.0)ini_set -- Set the value of a configuration optionDescriptionstring ini_set (string varname, string newvalue)
Sets the value of the given configuration option. Returns the old
value on success, FALSE on failure. The configuration
option will keep this new value during the script's execution,
and will be restored at the script's ending.
Not all the available options can be changed using
ini_set(). Below is a table with a list of all
PHP options (as of PHP 4.0.5-dev), indicating which ones can be
changed/set and at what level.
Tabela 1. Configuration optionsNameDefaultChangeabledefine_syslog_variables"0"PHP_INI_ALLhighlight.bgHL_BG_COLORPHP_INI_ALLhighlight.commentHL_COMMENT_COLORPHP_INI_ALLhighlight.defaultHL_DEFAULT_COLORPHP_INI_ALLhighlight.htmlHL_HTML_COLORPHP_INI_ALLhighlight.keywordHL_KEYWORD_COLORPHP_INI_ALLhighlight.stringHL_STRING_COLORPHP_INI_ALLallow_call_time_pass_reference"1"PHP_INI_SYSTEM|PHP_INI_PERDIRasp_tags"0"PHP_INI_SYSTEM|PHP_INI_PERDIRdisplay_errors"1"PHP_INI_ALLdisplay_startup_errors"0"PHP_INI_ALLenable_dl"1"PHP_INI_SYSTEMerror_append_stringNULLPHP_INI_ALLerror_prepend_stringNULLPHP_INI_ALLexpose_php"1"PHP_INI_SYSTEMhtml_errors"1"PHP_INI_SYSTEMignore_user_abort"0"PHP_INI_ALLimplicit_flush"0"PHP_INI_PERDIR|PHP_INI_SYSTEMlog_errors"0"PHP_INI_ALLmagic_quotes_gpc"1"PHP_INI_PERDIR|PHP_INI_SYSTEMmagic_quotes_runtime"0"PHP_INI_ALLmagic_quotes_sybase"0"PHP_INI_PERDIR|PHP_INI_SYSTEMoutput_buffering"0"PHP_INI_PERDIR|PHP_INI_SYSTEMoutput_handlerNULLPHP_INI_PERDIR|PHP_INI_SYSTEMregister_argc_argv"1"PHP_INI_ALLregister_globals"1"PHP_INI_PERDIR|PHP_INI_SYSTEMsafe_mode"0"PHP_INI_SYSTEMshort_open_tag"1"PHP_INI_SYSTEM|PHP_INI_PERDIRsql.safe_mode"0"PHP_INI_SYSTEMtrack_errors"0"PHP_INI_ALLy2k_compliance"0"PHP_INI_ALLarg_separator"&"PHP_INI_ALLauto_append_fileNULLPHP_INI_ALLauto_prepend_fileNULLPHP_INI_ALLdoc_rootNULLPHP_INI_SYSTEMdefault_charsetSAPI_DEFAULT_CHARSETPHP_INI_ALLdefault_mimetypeSAPI_DEFAULT_MIMETYPEPHP_INI_ALLerror_logNULLPHP_INI_ALLextension_dirPHP_EXTENSION_DIRPHP_INI_SYSTEMgpc_order"GPC"PHP_INI_ALLinclude_pathPHP_INCLUDE_PATHPHP_INI_ALLmax_execution_time"30"PHP_INI_ALLopen_basedirNULLPHP_INI_SYSTEMsafe_mode_exec_dir"1"PHP_INI_SYSTEMupload_max_filesize"2M"PHP_INI_ALLfile_uploads"1"PHP_INI_ALLpost_max_size"8M"PHP_INI_SYSTEMupload_tmp_dirNULLPHP_INI_SYSTEMuser_dirNULLPHP_INI_SYSTEMvariables_orderNULLPHP_INI_ALLSMTP"localhost"PHP_INI_ALLbrowscapNULLPHP_INI_SYSTEMerror_reportingNULLPHP_INI_ALLmemory_limit"8M"PHP_INI_ALLprecision"14"PHP_INI_ALLsendmail_fromNULLPHP_INI_ALLsendmail_pathDEFAULT_SENDMAIL_PATHPHP_INI_SYSTEMdisable_functions""PHP_INI_SYSTEMallow_url_fopen"1"PHP_INI_ALL
Tabela 2. Definition of PHP_INI_* constantsConstantValueMeaningPHP_INI_USER1Entry can be set in user scriptsPHP_INI_PERDIR2Entry can be set in .htaccessPHP_INI_SYSTEM4Entry can be set in php.ini or
httpd.confPHP_INI_ALL7Entry can be set anywhere
See also ini_alter(),
ini_get(),
ini_restore()
PoprzedniSpis treściNastępnyini_restorePoczątek rozdziałuphpcredits
Wyszukiwarka
Podobne podstrony:
function ini setfunction pdf set horiz scalingfunction ldap set optionfunction pdf set info subjectfunction cpdf set viewer preferencesfunction ftp set optionfunction com setfunction stream set write bufferfunction pdf set info titlefunction xml set notation decl handlerfunction xslt set scheme handlerfunction msession setfunction msession set arrayfunction fdf set versionfunction cpdf set creatorfunction pdf set info authorfunction xml set external entity ref handlerwięcej podobnych podstron