Answer the question
In order to leave comments, you need to log in
How to pass value to php script from php server configuration?
You need to somehow register a value in the php configuration, which can then be obtained in a php script.
For example: server = 123
The nginx + php-fpm bundle is running on the server.
Answer the question
In order to leave comments, you need to log in
This can be done through the fastcgi_param directive:
...
location ... {
...
fastcgi_pass ...;
fastcgi_param MY_PARAM "123";
...
}
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question