Re: include files, ".php" or ".inc" ?

From: Date: Sun, 21 Nov 2004 20:05:24 +0000
Subject: Re: include files, ".php" or ".inc" ?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-202613@lists.php.net to get a copy of this message
Perry Jönsson wrote:
Jon-Eirik Pettersen wrote:
Perry Jönsson wrote:
Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension ".inc" or ".php"?
No, it does not.
What it the purpose of the ".inc" file then?
Not really anything. Just to separate the files. A problem when using .inc files is that it is not default parsed when requested directly in the browser, so it may be less secure if it contain SQL-passwords, etc.

« previous php.general (#202613) next »