Re: Including Functions; one file or many?

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

 



2006/5/27, Jochem Maas <jochem@xxxxxxxxxxxxx>:

2. any include file that does contain code that runs on inclusion contains
something
like the following as the first line of code:

if (!defined('MY_APP_IS_SETUP')) die('try
http://'.$SERVER['SERVER_NAME'].'/');


An enhancement to this strategy could be using an error header to prevent
exposing the internal structure of your site:

if (!defined('MY_APP_IS_SETUP')) {
header("Status: 404 Not Found");
die;
}

[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