Harshdeep S Jawanda's [[EMAIL PROTECTED]] 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.

-- 
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]

Reply via email to