Where should I keep passwords and API keys?

Quick answerBeginnerUpdated

Short answer

Outside public_html and outside your repository, in a configuration file the application reads at runtime. Anything inside public_html can potentially be served to a browser, and anything committed to a repository is very hard to remove afterwards.

Learn more

Step-by-step

New to Traxio? The PHP hosting page lists the PHP versions, database and tools every account gets, free for the first 30 days.

All developer tools questions · All questions and answers

Popular

Tip: press / to search from any pageSee all results