Re: .inc over .php

From: Date: Fri, 19 Apr 2002 12:58:17 +0000
Subject: Re: .inc over .php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93678@lists.php.net to get a copy of this message
On Friday, April 19, 2002, at 04:10 AM, Jacob Wyke wrote:
Why use .inc as a file extenstion when you can use .php ?? What are the advantages/disadvantages to using .inc? Is one more secure? Which is faster? Which is consider a better pratice?
It's just to help me organize which files I use as included files (.inc) and which files are actual PHP scripts that can be requested with a URI (.php). Also, I set an Apache directive to refuse requests for any file with the .inc extension, so my database connection info, password, etc is (theoretically) safe from being served directly. Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.general (#93678) next »