Where should PHP include files should be stored?

I have always looked for a very good reason why you should not store your include files inside the root directory of a website and today I found a excellent one in Chris Shiflett’s blog.

The reason is simple, just search on Google for inurl:db.inc and check the first result.

For more details and techniques check Chris Shiflett’s post about this.

Advertisements

About mcloide

Making things simpler, just check: http://www.mcloide.com View all posts by mcloide

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: