Normally I'd put anything sensitive like config info, in a "include" directory which contains .php files which should only be included, never executed directly.
I put something like
Deny From All
In this directory's .htaccess.
This is just a precautionary measure which prevents information leakage in the event of a very badly misconfigured production server. Such a configuration error is extremely unlikely anyway, as it would completely break a production server.
Of course if you're on shared hosting, all bets are off.
Don't do anything which you care about on shared hosting, it's not at all secure against other rogue users, or the attackers of their lame apps.
Mark