RE: include files, ".php" or ".inc" ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux