Use Heroku config vars with PHP? -


i've been able find information on how use config vars in heroku python, node.js, , other languages, not php. can use them php, or not supported?

this article shows how python, java, , ruby, not php.

config vars on heroku manifest environment variables, should able access them php other environment variable, eg. using getenv.

first, set variable console:

heroku config:set my_var=somevalue 

then, access code:

$my_env_var = getenv('my_var'); 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -