what is the best method?
I use this way...
index.php
<?php $secure = true; include_once("file.php"); ?> I do not want opens file.php directly. so in first line I wrote this code: file.php
<?php // first line I wrote this code: if(!isset($secure)) exit('No Access');if(!$secure) exit('No Access'); ... some code ... ?> Do you think my method is true?