Re: Include file questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



.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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux