Re: Re[2]: [PHP] include files, ".php" or ".inc" ?

2004-11-22 Thread Chris Shiflett
--- Richard Davey <[EMAIL PROTECTED]> wrote: > MK> Yes, .inc files will show up as they are - php source, db > MK> username/password etc. So it's even less secure unless you > forbid serving them: > > That would be the "properly configured web server" section of > my post, assuming this has been d

Re: [PHP] include files, ".php" or ".inc" ?

2004-11-22 Thread Justin French
On 22/11/2004, at 7:02 AM, Perry Jönsson wrote: What it the purpose of the ".inc" file then? It gives you a way of knowing what's a directly executable file (like index.php) and what's an included file. Further, I disallow the direct serving of all .inc files in my htaccess, so that people can't

Re[2]: [PHP] include files, ".php" or ".inc" ?

2004-11-22 Thread Richard Davey
Hello Marek, Monday, November 22, 2004, 12:18:22 PM, you wrote: MK> Yes, .inc files will show up as they are - php source, db MK> username/password etc. So it's even less secure unless you forbid MK> serving them: That would be the "properly configured web server" section of my post, assuming th

Re: [PHP] include files, ".php" or ".inc" ?

2004-11-22 Thread Marek Kilimajer
Richard Davey wrote: Hello Perry, Sunday, November 21, 2004, 8:02:48 PM, you wrote: PJ> What it the purpose of the ".inc" file then? Security - on a properly configured web server a .inc file will never actually try and compile/execute itself. Whereas a .php one always will. Yes, .inc files will sh

RE: [PHP] include files, ".php" or ".inc" ?

2004-11-22 Thread steve
Graham Cossey wrote: > If you only have limited control/knowledge of Apache you could adopt > names something like: script.inc.php > > In such a way PHP will always process the script as it's extension > is .php and you can easily identify that it is a script to be > included/required. FWIW, I us

Re: [PHP] include files, ".php" or ".inc" ?

2004-11-21 Thread John Holmes
Perry Jönsson wrote: Does it make any difference if you include (include/require/include_once/require_once) files with extension ".inc" or ".php"? It makes no difference as far as PHP is concerned. You're just telling PHP what file to load. However, .inc files are generally served up as plain t

Re[2]: [PHP] include files, ".php" or ".inc" ?

2004-11-21 Thread Richard Davey
Hello Perry, Sunday, November 21, 2004, 8:02:48 PM, you wrote: PJ> What it the purpose of the ".inc" file then? Security - on a properly configured web server a .inc file will never actually try and compile/execute itself. Whereas a .php one always will. Best regards, Richard Davey -- http:/

RE: [PHP] include files, ".php" or ".inc" ?

2004-11-21 Thread Graham Cossey
> Perry Jönsson wrote: > > > Jon-Eirik Pettersen wrote: > > > >> Perry Jönsson wrote: > >> > >>> Hello, > >>> > >>> Does it make any difference if you include > >>> (include/require/include_once/require_once) files with extension > >>> ".inc" or ".php"? > >> > >> > >> > >> No, it does not. > > > >

Re: [PHP] include files, ".php" or ".inc" ?

2004-11-21 Thread Janet Valade
Perry Jönsson wrote: Jon-Eirik Pettersen wrote: Perry Jönsson wrote: Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension ".inc" or ".php"? No, it does not. What it the purpose of the ".inc" file then? For organization. The file name

Re: [PHP] include files, ".php" or ".inc" ?

2004-11-21 Thread Jon-Eirik Pettersen
Perry Jönsson wrote: Jon-Eirik Pettersen wrote: Perry Jönsson wrote: Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension ".inc" or ".php"? No, it does not. What it the purpose of the ".inc" file then? Not really anything. Just to se

Re: [PHP] include files, ".php" or ".inc" ?

2004-11-21 Thread Perry Jönsson
Jon-Eirik Pettersen wrote: Perry Jönsson wrote: Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension ".inc" or ".php"? No, it does not. What it the purpose of the ".inc" file then? /Perry -- PHP General Mailing List (http://www.php.n

Re: [PHP] include files, ".php" or ".inc" ?

2004-11-21 Thread Jon-Eirik Pettersen
Perry Jönsson wrote: Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension ".inc" or ".php"? No, it does not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] include files, ".php" or ".inc" ?

2004-11-21 Thread Perry Jönsson
Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension ".inc" or ".php"? Best regards, Perry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php