.inc or .anything - better or worse ?

From: Date: Tue, 05 Dec 2000 23:29:57 +0000
Subject: .inc or .anything - better or worse ?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-28780@lists.php.net to get a copy of this message
At 09:59 AM 28/11/2000, you wrote:
Most people add .inc to their PHP parser - AFAIK this is kind of a standard practice. A person looking at main.inc would get "Document Contained No Data". Not a huge security risk IMO - of course mine are outside of the docroot ;O)
Is there any specific why it an unwritten law that included files are .inc ? The first ever tutorial I did for PHP actually made included files .php and the reason it said this was because some places may not protect .inc (or other extentions) and also may not allow you access to go back a directory and use that area. Ive been using .php for all my included files (mostly all my functions are in these files) and never had a problem but it seems that most people use .inc instead. Chris

« previous php.general (#28780) next »