Re: A small Q
| From: | Philip Reynolds | Date: | Wed, 28 Feb 2001 15:12:15 +0000 |
| Subject: | Re: A small Q | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42011@lists.php.net to get a copy of this message | ||
Harshdeep S Jawanda's [harsh@pspl.co.in] 20 lines of wisdom included:
:>Hi,
:>
:>Does the extension of files that are require()-d or include()-d in PHP
:>have to be ".inc"? Can it be ".php"?
:>
:>All examples seem to show this extension as ".inc". Could there be any
:>problems if the extension is kept ".php"?
No problems at all, only reason I would recommend a different
extension is that you can disallow the viewing of the included files
in apache with the extension ".inc" as follows:
<Files ~ "\.inc$">
Order allow,deny
Deny from all
</Files>
Regards,
Phil.