PHP.mk документација

.user.ini датотеки

Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.

configuration.file.per-user.php PHP.net прокси Преводот е вчитан
Оригинал на PHP.net
Патека configuration.file.per-user.php Локална патека за оваа страница.
Извор php.net/manual/en Оригиналниот HTML се реупотребува и локално се стилизира.
Режим Прокси + преведен приказ Кодовите, табелите и белешките остануваат читливи во истиот тек.
.user.ini датотеки

Референца за `configuration.file.per-user.php` со подобрена типографија и навигација.

configuration.file.per-user.php

.user.ini датотеки

PHP вклучува поддршка за конфигурациски INI датотеки по директориум. Овие датотеки се обработуваат only PHP вклучува поддршка за конфигурациски INI датотеки на основа на директориум. Овие датотеки се обработуваат .htaccess од страна на CGI/FastCGI SAPI. Оваа функционалност го прави застарен PECL htscanner екстензијата. Ако користите PHP како Apache модул, користете

датотеки за истата цел. php.ini Покрај главната $_SERVER['DOCUMENT_ROOT']датотека, PHP скенира за INI датотеки во секој директориум, почнувајќи од директориумот на бараната PHP датотека, и работи нагоре до тековниот документ рут (како што е поставено во

). Во случај PHP датотеката е надвор од документот рут, само нејзиниот директориум се скенира. INI_PERDIR and INI_USER Само INI поставките со режимите

ќе бидат препознаени во INI датотеки во стилот на .user.ini. user_ini.filename and user_ini.cache_ttl Две нови INI директиви,

user_ini.filename ја контролираат употребата на кориснички INI датотеки. .user.ini.

user_ini.cache_ttl ја поставува името на датотеката што PHP ја бара во секој директориум; ако е поставено на празен стринг, PHP воопшто не скенира. Стандардно е

Белешки од корисници 6 белешки

ја контролира фреквенцијата на повторно читање на кориснички INI датотеки. Стандардно е 300 секунди (5 минути).
12 години пред
If you have no idea what "PHP_INI_PERDIR" or "PHP_INI_USER" are or how they relate to setting a .user.ini file, take a look at the ini.list page: http://www.php.net/manual/en/ini.list.php

Basically, anything in the "Changeable" column labeled as PHP_INI_SYSTEM can't be set in the .user.ini file (so quit trying).  It can ONLY be set at the main php.ini level.
philsward at gmail dot com
пред 11 години
"If you are using Apache, use .htaccess files for the same effect."

To clarify, this applies only to Apache module mode. If you put php directives in .htaccess on an Apache CGI/FastCGI server, this will bomb the server out with a 500 error. Thus, you unfortunately cannot create a config which caters for both types of hosting, at least not in any straightforward way.
Анонимен
пред 6 години
Since the .user.ini is read from public directories, it's contents will be served to anyone requesting it and potientially show them sensitive configuration settings. 

Add these lines to your .htaccess to block requests to it : 
<Files ".user.ini">  
    Require all denied
</Files>
mark на manngo точка net
3 години пред
Trap for young players, not that I’m such a young player myself.

The default setting for user_ini.cache_ttl is 300 seconds, which means that it refreshes every 5 minutes. If you are tweaking the settings in .user.ini, it could take up to 5 minutes before you see the results of your experimentation.

If you don’t have access to php.ini where you can change this setting, you will have to learn to be very patient.
Anteaus at thenox dot com
пред 5 години
For those looking for an example... .user.ini should be formatted as a simple list of [KEY]=[VALUE]\n sets.  For example, a one-line .user.ini file that serves solely to change the max allowable upload file size to 5Mb is:

upload_max_filesize="5M"
interfaSys
пред 15 години
This article should be made clearer.
".htaccess-style INI files" meant to me that the ini settings had to follow the syntax used in .htaccess, but this is not the case!

You have to use
register_globals=on
and not
php_flag register_globals on

Also, the changes can take a while to propagate to all processes if you have a long process time out.
Restarting php-fpm can give you an answer quicker :)
На оваа страница

Автоматски outline од активната документација.

Насловите ќе се појават тука по вчитување.

Попрегледно читање

Примерите, changelog табелите и user notes се визуелно издвоени за да не се губат во долгата содржина.

Брз совет Користи го outline-от Скокни директно на главните секции од активната страница.
Извор Оригиналниот линк останува достапен Кога ти треба целосен upstream context, отвори го PHP.net во нов tab.