varemenos
4/8/2012 - 12:11 AM

PHP - Deny Direct Access

PHP - Deny Direct Access

<?php
	// inside included file
	defined('INCLUDE') or die('No direct access allowed.');
?>

<?php
	// inside includer
	define('INCLUDE', true);
?>