File Naming Anti-Pattern

Click this link to see why you should not name your PHP files *.inc.

I still see people naming their files "something.inc". The problem with doing that is the server won't interpret .inc files as PHP files. By default it treats them as text. So if you have your database password in a file named config.inc, it might accidentally get exposed.

.

Donate Bitcoin to support the writer: 1F13NCPcFKjJ7oy36zc2vBTtqoQCBPpAPH

Comments are disabled

If you wish to comment, post this article on reddit or hacker news.