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 use
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 show
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
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
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.net/)
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
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?
Perry Jnsson 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 text
9 matches
Mail list logo