azure - What Can Access "App Settings Key Values"? -


in microsoft azure web app service under application settings, there key-value pair options within option app settings. if developer has php or python files in multiple directories, of these directories , (or) files have access these key-value pairs.

example:

suppose developer has following key value pair settings in app settings:

key: $variablestring | value: "my first example string."

key: $variablenumber | value: 1000

php files:

site\wwwroot\index.php

site\wwwroot\folderone\pageone.php

site\wwwroot\folderone\pagetwo.php

site\wwwroot\foldertwo\page.php

would these files have access these variables, or these files need have reference (and where?) these key-value pairs saved in each php file include pointer app settings file (azure doesn't show becomes file)?

thanks.

they available environment variables doesn't matter file is.

if set app setting key item_count , value 15, use:

$item_count = getenv('item_count'); 

or:

$item_count = getenv('appsetting_item_count'); 

and $item_count contain string "15".


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -