3 ms·
For Java they used to demonstrate putting a .properties file in among your source code [1] although admittedly not literally hardcoding a string. The PHP exampl
by michaelt 4y ago
For Java they used to demonstrate putting a .properties file in among your source code [1] although admittedly not literally hardcoding a string. The PHP examples suggested putting your code into a config php include [2] (although they did also suggest putting them in your home directory).
But I can't understate how important it was that the AWS getting started guides said "Go to this URL, copy these values into this file" while Google's examples and getting started guides... didn't.
[1] https://web.archive.org/web/20120521060506/http://aws.amazon.com/articles/3586?_encoding=UTF8&jiveRedirect=1 https://web.archive.org/web/20120521060506/http://aws.amazon...
[2] https://github.com/amazonwebservices/aws-sdk-for-php/blob/master/config-sample.inc.php https://github.com/amazonwebservices/aws-sdk-for-php/blob/ma...
- scarface74 4y agoWow, that’s some old code :). But here is the newest documentation for PHP https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/s3-examples.html https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/s...