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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]