On Thu, 02 Jun 2005 00:44:12 -0400, in php.general [EMAIL PROTECTED]
(Chris Shiflett) wrote:
>3. The debate between storing includes outside of document root versus
>using a .php file extension, instructing Apache to process .inc files as
>PHP, instructing PHP to deny requests for .inc files, et
Richard Lynch wrote:
On Wed, June 1, 2005 1:29 am, Denis Gerasimov said:
Second, which way are you differ PHP .inc files from HTML .inc files?
There is no such thing as an HTML .inc file. :-)
All your HTML .inc files, by definition, if they are being require'd or
include'd int
Rory Browne wrote:
> Alternatively if the include_path, contained the path that your
> includes were in, (and only the directory where you put your
> includes), then php wouldn't have very far to search.
Well, no real difference between that and just making sure most of your
includes are in the f
>
> I do not agree.
Not agreeing with Rasmus on a PHP list, can be seriously damaging to
your credability, unless you really know what you're talking about and
have a solid argument.
Having that said, I personally use .inc.php - .inc as Rasmus said, to
denote include files, and .php because I co
OK... Let me explain a couple things...
> On Wed, June 1, 2005 1:29 am, Denis Gerasimov said:
> > Second, which way are you differ PHP .inc files from HTML .inc files?
>
> There is no such thing as an HTML .inc file. :-)
I see what you mean... but I use templating systems t
Richard Lynch wrote:
Why risk the possibility of your code being exposed or executed out of
context when it's so *EASY* to move the include files and set
include_path?
I just don't understand the resistance to such a simple straight-forward
elegant security measure.
For 5 minutes of time, you c
On Wed, June 1, 2005 1:29 am, Denis Gerasimov said:
> Second, which way are you differ PHP .inc files from HTML .inc files?
There is no such thing as an HTML .inc file. :-)
All your HTML .inc files, by definition, if they are being require'd or
include'd into PHP *are* PHP .inc
m all
cool. cheers for that :-)
Second, which way are you differ PHP .inc files from HTML .inc files?
Many programs can't too... IMHO it is very inconvenient.
Third, I always write context-independent include files.
Objections?
I'd say so.
a, your disagreement is more like an amendme
ay:
Order allow,deny
Deny from all
Second, which way are you differ PHP .inc files from HTML .inc files?
Many programs can't too... IMHO it is very inconvenient.
Third, I always write context-independent include files.
Objections?
Thank you.
Best regards,
Denis Gerasimov,
Chief
they're usually used as includes, hence the "INC" part.
files that have certain functions/classes that another script requires
and people use them to split up the code.
I don't and have never created .inc files.. all my files end in .php --
but that's just me.
Martin Zvarik wrote:
Hi,
I s
On 5/30/05, Martin Zvarik <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I saw files like "file.inc.php" and "file.inc"
>
> What is the *.inc suffix good for ?
>
> Thank you for replies.
>
> Martin
>
>
I think it means that the files were meant to be included...not called
by themselves. I'm just guess
Martin Zvarik wrote:
> Hi,
> I saw files like "file.inc.php" and "file.inc"
>
> What is the *.inc suffix good for ?
I don't see the point in file.inc.php, but file.inc is something I use
all the time to indicate that a file is designed to be included and not
accessed directly. Then I have an Ap
Martin Zvarik wrote:
Hi,
I saw files like "file.inc.php" and "file.inc"
What is the *.inc suffix good for ?
Thank you for replies.
Martin
It doesn't matter. PHP will parse either if you call them via include()
or require()
I guess it just boils down to your preference.
--
John C. Nich
Hi,
I saw files like "file.inc.php" and "file.inc"
What is the *.inc suffix good for ?
Thank you for replies.
Martin
Hi,
I saw files like "file.inc.php" and "file.inc"
What is the *.inc suffix good for ?
Thank you for replies.
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is really my first major PHP encounter, and I have attempted to modify
a php form mail script to include a foot.inc and head.inc file, which works
fine if all required fields in the form is filled out. But if there are more
than 2 required fields missing I end up with what you see here:
http:
Hi
I was wondering, is there a different way using .inc files? I have a lot of
.inc files, which are displayed as normal text when you call it in the
browser. I would like to still have a file with the username / password /
database / etc in, but make it say config.inc.php. How would I get the ap
17 matches
Mail list logo