Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Fri, 2007-05-25 at 18:20 +0200, Tijnema wrote: > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: > > > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Fri, 2007

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 18:20 +0200, Tijnema wrote: > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: > > > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: > > > > > I like to

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: > > > I like to keep it simple, just like this: > > > / > > > /data > > > /

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: > > > I like to keep it simple, just like this: > > > / > > > /data > > > /http > > > /project1 > > > /includes > > >

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: > On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote: > > > > > -Original Message- > > > From: Tijnema [mailto:[EMAIL PROTECTED] > > > > > > > > > > It's just the way you write script, m

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: > On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote: > > > > > -Original Message- > > > From: Tijnema [mailto:[EMAIL PROTECTED] > > > > > > > > > > It's just the way you write script, my included files contain only > > > > > functions & varia

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Tijnema [mailto:[EMAIL PROTECTED] > > > > > > It's just the way you write script, my included files contain only > > > functions & variables, no executing code. 99% I have a class around > > > it. > > > If you

RE: [PHP] Include file questions

2007-05-25 Thread Edward Kay
> -Original Message- > From: Tijnema [mailto:[EMAIL PROTECTED] > > > > > > It's just the way you write script, my included files contain only > > > functions & variables, no executing code. 99% I have a class around > > > it. > > > If you write it like that, than there's no problem with ex

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 16:17 +0200, Tijnema wrote: > On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote: > > Why are your include files in your web root in the first place? Move them > > elsewhere on your filesystem and then it's not even possible to access them > > via the web. > > > > Edward > > > O

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Tijnema [mailto:[EMAIL PROTECTED] > Sent: 25 May 2007 15:00 > To: tedd > Cc: Kevin Murphy; Stephen; php > Subject: Re: [PHP] Include file questions > > > On 5/25/07, tedd &l

RE: [PHP] Include file questions

2007-05-25 Thread Edward Kay
> -Original Message- > From: Tijnema [mailto:[EMAIL PROTECTED] > Sent: 25 May 2007 15:00 > To: tedd > Cc: Kevin Murphy; Stephen; php > Subject: Re: [PHP] Include file questions > > > On 5/25/07, tedd <[EMAIL PROTECTED]> wrote: > > At 1:55 PM -0700

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 16:00 +0200, Tijnema wrote: > On 5/25/07, tedd <[EMAIL PROTECTED]> wrote: > > At 1:55 PM -0700 5/23/07, Kevin Murphy wrote: > > >.inc files have a disadvantage in that if you view the file: > > > > > >http://www.yoursite.com/file.inc > > > > > >you can see the php code. I pref

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, tedd <[EMAIL PROTECTED]> wrote: At 1:55 PM -0700 5/23/07, Kevin Murphy wrote: >.inc files have a disadvantage in that if you view the file: > >http://www.yoursite.com/file.inc > >you can see the php code. I prefer not to use those just on the off >chance that someone can see my code a

Re: [PHP] Include file questions

2007-05-25 Thread tedd
At 1:55 PM -0700 5/23/07, Kevin Murphy wrote: .inc files have a disadvantage in that if you view the file: http://www.yoursite.com/file.inc you can see the php code. I prefer not to use those just on the off chance that someone can see my code and use that as the basis for figuring out a way

Re: [PHP] Include file questions

2007-05-24 Thread Richard Lynch
On Wed, May 23, 2007 3:48 pm, Stephen wrote: > 1) Does the filename extension matter? I prefer *.inc? It seems to > work fine, but I only see others using *.php >From a strictly "will it work" stand-point, the extension can be anything you want or none at all. HOWEVER, there are various security

Re: [PHP] Include file questions

2007-05-24 Thread Miguel J. Jiménez
Stephen escribió: 1) Does the filename extension matter? I prefer *.inc? It seems to work fine, but I only see others using *.php 2) Does the include file need an opening ? Not big issues, but I am curious. Thanks Stephen If you use .inc extension you will have to modi

Re: [PHP] Include file questions

2007-05-23 Thread Stephen
Kevin Murphy <[EMAIL PROTECTED]> wrote: .inc files have a disadvantage in that if you view the file: http://www.yoursite.com/file.inc you can see the php code. I prefer not to use those just on the off chance that someone can see my code and use that as the basis for figuring out a wa

Re: [PHP] Include file questions

2007-05-23 Thread Kevin Murphy
.inc files have a disadvantage in that if you view the file: http://www.yoursite.com/file.inc you can see the php code. I prefer not to use those just on the off chance that someone can see my code and use that as the basis for figuring out a way to exploit it (especially true of password fi