Where to put includes?

2 views
Skip to first unread message

scott.t...@gmail.com

unread,
May 3, 2007, 11:46:14 PM5/3/07
to OC PHP
Where do people usually keep their includes for PHP in www, above the
www directory? I've been doing mine in www, but have started to make
the move of putting the includes outside of the www directory just for
security. Thoughts?

Scott Norman

losthit...@gmail.com

unread,
May 4, 2007, 1:12:17 AM5/4/07
to OC PHP
The majority thought at previous OCPHP meetups is, for added layer of
security, to include the majority of the code out of www. This is
especially true for any includes/scripts or configs that contains
login information for databases.

On May 3, 8:46 pm, "scott.t.nor...@gmail.com"

craig.s...@gmail.com

unread,
May 4, 2007, 1:09:07 PM5/4/07
to OC PHP
I'm in the same boat as you. However, I have recently started using
my htaccess files to disable access to my include files. I should
also throw some logic in the files too to make sure they're being
called by my application too...

Reply all
Reply to author
Forward
0 new messages