Is it better to check for a defined constant, check the url, or any other ways....
something like
if(!defined(INCLUDED))
of
if($_SERVER['REQUEST_URI'] == $_SERVER['PHP_SELF'])
What ways do you check if a file was accessed directly..also, is it important to prevent direct access to pages... (I figure a site should work in the way it was designed, so accessing directly would go against that, but) what are your thoughts