In the base class Kohana there is a constant FILE_SECURITY .
string(60) "<?php defined('SYSPATH') or die('No direct script access.');"
Now, obviously, if you put this at the beginning of your files, and if it is available outside the Kohana environment, it will die() .
But what is the purpose of this constant? We cannot eval() it, because it has a leading <?php .
Does Kohana create PHP files somewhere and use it to add it to the top of the file?
php kohana
alex
source share