RE: [PHP] include files, ".php" or ".inc" ?
| From: | steve | Date: | Mon, 22 Nov 2004 10:24:35 +0000 |
| Subject: | RE: [PHP] include files, ".php" or ".inc" ? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202653@lists.php.net to get a copy of this message | ||
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 .php for main scripts/pages, and .phtml for includes, as the
latter get processed through PHP too.
--
@+
Steve