Re: A small Q
| From: | Robert Vetter | Date: | Wed, 28 Feb 2001 15:15:35 +0000 |
| Subject: | Re: A small Q | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42013@lists.php.net to get a copy of this message | ||
Harshdeep S Jawanda wrote:
>
> 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"?
I don't know what examples you mean, but:
the name of the included/required file in PHP does not matter. However
the best thing is always to use the extention "*.php" to make sure the
files are always going thru the PHP interpreter, even when someone
access them directly by its URL.
Robert