W
W
wmlex2016-07-29 08:27:34
Nginx
wmlex, 2016-07-29 08:27:34

Why does the value of short_open_tag in the nginx config need to be specified through php_value, and not through php_flag?

Help clarify the situation with the php_value and php_flag parameters.

php_value name value
Sets the value of the designated directive. Can only be used with directives like PHP_INI_ALL and PHP_INI_PERDIR To clear previous values ​​set, use none.

php_flag name on|off
Used to set boolean values ​​to directives. Can only be used with directives like PHP_INI_ALL and PHP_INI_PERDIR.

I want to set the value of the short_open_tag on/off parameter from the nginx config. I write fastcgi_param PHP_FLAG "short_open_tag=on"; nothing changes, and if I write fastcgi_param PHP_VALUE "short_open_tag=on";, then everything starts working. Help me figure out why this is happening?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2016-07-29
@opium

Vsb life through php_value in nginx was done, but I didn’t even know about the flag.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question