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-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 Oh, I don't want

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 [EMAIL PROTECTED] wrote: At 1:55 PM -0700 5

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 prefer not to use those

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 and use

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 5/23/07, Kevin Murphy wrote: .inc files have

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 execution the

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 write it like

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 variables, no executing code.

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, my included files

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 /http

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 config.php

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 keep it simple,

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-05-25 at 17:07

Re[2]: [PHP] Include file questions

2007-05-25 Thread Richard Davey
Hi Tijnema, Friday, May 25, 2007, 5:58:46 PM, you wrote: On 5/25/07, Robert Cummings [EMAIL PROTECTED] wrote: Very. Each directory contains very specific types of code/content. Tracking down where any given function, class, custom tag, behaviour, etc is defined is extremely simple. Cheers,

Re: Re[2]: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Richard Davey [EMAIL PROTECTED] wrote: Hi Tijnema, Friday, May 25, 2007, 5:58:46 PM, you wrote: On 5/25/07, Robert Cummings [EMAIL PROTECTED] wrote: Very. Each directory contains very specific types of code/content. Tracking down where any given function, class, custom tag,

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 ?php and ending ? ? Not big issues, but I am curious. Thanks Stephen If you use .inc extension you

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 code

[PHP] Include file questions

2007-05-23 Thread Stephen
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 ?php and ending ? ? Not big issues, but I am curious. Thanks Stephen

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 way