Re: [PHP] including files outside of document root

2008-01-24 Thread Jason Pruim
On Jan 23, 2008, at 4:43 PM, Daniel Brown wrote: On Jan 23, 2008 4:19 PM, Jason Pruim [EMAIL PROTECTED] wrote: Okay, so I have this mostly working now! if I put my ini_set(include_path, blah/to/balh); on each and every page. I know I could include a file that is in the document root which

Re: [PHP] including files outside of document root

2008-01-24 Thread Daniel Brown
On Jan 24, 2008 1:05 PM, Jason Pruim [EMAIL PROTECTED] wrote: You just made my life so much earlier! Thank you! Yes, you guessed it. I am your father. -- /Dan Daniel P. Brown Senior Unix Geek and #1 Rated Year's Coolest Guy By Self Since Nineteen-Seventy-[mumble]. -- PHP General

Re: [PHP] including files outside of document root

2008-01-23 Thread Jason Pruim
On Jan 22, 2008, at 3:57 PM, Jason Pruim wrote: Hi everyone, Been doing some reading on security and have decided that I should be storing my include files outside of the document root... Which I understand how to do it, but what I'm wondering, is say I write the Next Killer App (tm).

Re: [PHP] including files outside of document root

2008-01-23 Thread Thijs Lensselink
Quoting Jason Pruim [EMAIL PROTECTED]: On Jan 22, 2008, at 3:57 PM, Jason Pruim wrote: Hi everyone, Been doing some reading on security and have decided that I should be storing my include files outside of the document root... Which I understand how to do it, but what I'm wondering,

Re: [PHP] including files outside of document root

2008-01-23 Thread Zoltán Németh
2008. 01. 23, szerda keltezéssel 09.37-kor Jason Pruim ezt írta: On Jan 22, 2008, at 3:57 PM, Jason Pruim wrote: Hi everyone, Been doing some reading on security and have decided that I should be storing my include files outside of the document root... Which I understand how to do

Re: [PHP] including files outside of document root

2008-01-23 Thread Daniel Brown
On Jan 22, 2008 8:48 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, January 22, 2008 7:17 pm, Daniel Brown wrote: You may disagree with me on this here, Rich, but the way I do it is to have a single include_files.php file containing all of the files that need to be included as a

Re: [PHP] including files outside of document root

2008-01-23 Thread Richard Lynch
On Wed, January 23, 2008 8:37 am, Jason Pruim wrote: On Jan 22, 2008, at 3:57 PM, Jason Pruim wrote: Hi everyone, #1.When including files outside of the webroot do you need to specify the entire path? Like for me, that would be something like: /

Re: [PHP] including files outside of document root

2008-01-23 Thread Roberto Mansfield
Jason Pruim wrote: Been doing some reading on security and have decided that I should be storing my include files outside of the document root... Which I understand how to do it, but what I'm wondering, is say I write the Next Killer App (tm). How would I port that code easily off of my

Re: [PHP] including files outside of document root

2008-01-23 Thread Jason Pruim
On Jan 23, 2008, at 2:50 PM, Roberto Mansfield wrote: Jason Pruim wrote: Been doing some reading on security and have decided that I should be storing my include files outside of the document root... Which I understand how to do it, but what I'm wondering, is say I write the Next Killer

Re: [PHP] including files outside of document root

2008-01-23 Thread Daniel Brown
On Jan 23, 2008 2:50 PM, Roberto Mansfield [EMAIL PROTECTED] wrote: I tend to keep the directories in the document root, but I deny access via an .htaccess file. This keeps the code in a simple directory structure. Anyone else doing that? My fear on that is if there's changes to the

Re: [PHP] including files outside of document root

2008-01-23 Thread Roberto Mansfield
Daniel Brown wrote: On Jan 23, 2008 2:50 PM, Roberto Mansfield [EMAIL PROTECTED] wrote: I tend to keep the directories in the document root, but I deny access via an .htaccess file. This keeps the code in a simple directory structure. Anyone else doing that? My fear on that is if

Re: [PHP] including files outside of document root

2008-01-23 Thread Daniel Brown
On Jan 23, 2008 2:56 PM, Jason Pruim [EMAIL PROTECTED] wrote: that's why I made my decision. Not to say it's the right one, just a step in the right direction. To me it also seems more portable across hosts to have access outside of your webroot vs. access to .htaccess It's far more

Re: [PHP] including files outside of document root

2008-01-23 Thread Jason Pruim
On Jan 23, 2008, at 3:04 PM, Daniel Brown wrote: On Jan 23, 2008 2:56 PM, Jason Pruim [EMAIL PROTECTED] wrote: that's why I made my decision. Not to say it's the right one, just a step in the right direction. To me it also seems more portable across hosts to have access outside of your

Re: [PHP] including files outside of document root

2008-01-23 Thread Daniel Brown
On Jan 23, 2008 3:28 PM, Jason Pruim [EMAIL PROTECTED] wrote: I didn't realize that... That's good info. I always hear people talking about .htaccess files on all the different lists I'm on so I thought it was an industry standard thing :) Now I can shut my brain down because I learned my 1

Re: [PHP] including files outside of document root

2008-01-23 Thread Jason Pruim
On Jan 23, 2008, at 2:42 PM, Richard Lynch wrote: On Wed, January 23, 2008 8:37 am, Jason Pruim wrote: On Jan 22, 2008, at 3:57 PM, Jason Pruim wrote: Hi everyone, #1. When including files outside of the webroot do you need to specify the entire path? Like for me, that would be

Re: [PHP] including files outside of document root

2008-01-23 Thread Daniel Brown
On Jan 23, 2008 4:19 PM, Jason Pruim [EMAIL PROTECTED] wrote: Okay, so I have this mostly working now! if I put my ini_set(include_path, blah/to/balh); on each and every page. I know I could include a file that is in the document root which specified that, but I was wondering if I was missing

Re: [PHP] including files outside of document root

2008-01-23 Thread Richard Lynch
On Wed, January 23, 2008 1:50 pm, Roberto Mansfield wrote: Jason Pruim wrote: Been doing some reading on security and have decided that I should be storing my include files outside of the document root... Which I understand how to do it, but what I'm wondering, is say I write the Next

Re: [PHP] including files outside of document root

2008-01-23 Thread Richard Lynch
On Wed, January 23, 2008 3:19 pm, Jason Pruim wrote: Okay, so I have this mostly working now! if I put my ini_set(include_path, blah/to/balh); on each and every page. I know I could include a file that is in the document root which specified that, but I was wondering if I was missing

Re: [PHP] including files outside of document root

2008-01-22 Thread Daniel Brown
On Jan 22, 2008 3:57 PM, Jason Pruim [EMAIL PROTECTED] wrote: Hi everyone, Hi, Jason! Been doing some reading on security and have decided that I should be storing my include files outside of the document root... Which I understand how to do it, but what I'm wondering, is say I write the

Re: [PHP] including files outside of document root

2008-01-22 Thread shiplu
On Jan 22, 2008 4:21 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Jan 22, 2008 3:57 PM, Jason Pruim [EMAIL PROTECTED] wrote: Hi everyone, Hi, Jason! Been doing some reading on security and have decided that I should be storing my include files outside of the document root... Which I

Re: [PHP] including files outside of document root

2008-01-22 Thread Richard Lynch
On MOST setups, you might have: /yourhomedirectory /httpd_docs_or_something_like_that /index.php /page2.php /includes /globals.inc /connect.inc /sql So, pretty much, you'd do something like: tar -cvf my_site.tar http_docs includes gzip my_site.tar

Re: [PHP] including files outside of document root

2008-01-22 Thread Daniel Brown
On Jan 22, 2008 8:09 PM, Richard Lynch [EMAIL PROTECTED] wrote: Nothing peeves me more than some badly-conceived web-app with no way to move the include files out of the web-tree. You may disagree with me on this here, Rich, but the way I do it is to have a single include_files.php file

Re: [PHP] including files outside of document root

2008-01-22 Thread Richard Lynch
On Tue, January 22, 2008 7:17 pm, Daniel Brown wrote: On Jan 22, 2008 8:09 PM, Richard Lynch [EMAIL PROTECTED] wrote: Nothing peeves me more than some badly-conceived web-app with no way to move the include files out of the web-tree. You may disagree with me on this here, Rich, but the