Re: Include file questions

From: Date: Wed, 23 May 2007 20:55:45 +0000
Subject: Re: Include file questions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-255467@lists.php.net to get a copy of this message
.inc files have a disadvantage in that if you view the file: http://www.yoursite.com/file.inc you can see the php code. I prefer not to use those just on the off chance that someone can see my code and use that as the basis for figuring out a way to exploit it (especially true of password files, etc). -- Kevin Murphy Webmaster: Information and Marketing Services Western Nevada Community College www.wncc.edu 775-445-3326 On May 23, 2007, at 1:48 PM, Stephen wrote: > 1) Does the filename extension matter? I prefer *.inc? It seems to > work fine, but I only see others using *.php > > 2) Does the include file need an opening <?php and ending ?> ? > > Not big issues, but I am curious. > > Thanks > Stephen

« previous php.general (#255467) next »