Re: include files, ".php" or ".inc" ?
| From: | Marek Kilimajer | Date: | Mon, 22 Nov 2004 12:18:22 +0000 |
| Subject: | Re: include files, ".php" or ".inc" ? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202659@lists.php.net to get a copy of this message | ||
Richard Davey wrote:
Hello Perry, Sunday, November 21, 2004, 8:02:48 PM, you wrote: PJ> What it the purpose of the ".inc" file then? Security - on a properly configured web server a .inc file will never actually try and compile/execute itself. Whereas a .php one always will.Yes, .inc files will show up as they are - php source, db username/password etc. So it's even less secure unless you forbid serving them: <Files "*.inc"> Order Allow,Deny Deny from all </Files>