Lesson 4 of 4 · 12 min read
Passwords, config and going live
- Store passwords with
password_hash()and check withpassword_verify(). Never store plain text or MD5. - Keep config (DB passwords, API keys) in a folder outside
public_html. - Turn off
display_errorsin production — errors leak file paths. - Force HTTPS and add security headers in
.htaccess.
This exact setup is what powers excelora.in.
⚡ Quick check
Best function to store a password?
password_hash() uses slow, salted algorithms designed for passwords.