--- 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
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
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
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
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
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
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:/
> 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.
> >
> >
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
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
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
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
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
13 matches
Mail list logo