Dave Kiss
Dave Kiss

Reputation: 10485

Setting Environment Properties in PHP

I'm using AWS Beanstalk which allows me to set environment properties in the backend for my application container and retrieve theme as shown below:

echo get_cfg_var('aws.access_key');
echo get_cfg_var('aws.secret_key');
echo get_cfg_var('aws.param1');
echo get_cfg_var('aws.param2');

I'd like to set up a similar environment property locally, so that my password never reach my repository (I'm using git) - what is the best way to do this? php_ini? httpd.conf? How would I add the variable param1 = 'password';?

Cheers!

Upvotes: 4

Views: 650

Answers (1)

jarchuleta
jarchuleta

Reputation: 1241

in your php.ini add the lines.

aws.param1=whatever
aws.param2=whatever

Upvotes: 2

Related Questions