Forum PHP 2017

Voting

Please answer this simple SPAM challenge: max(two, nine)?
(Example: nine)

The Note You're Voting On

Thomas "Balu" Walter
11 years ago
Since many users can not modify apache configurations or use htaccess files, the best way to avoid unwanted access to include files would be a line at the beginning of the include-file:

<?php if (!defined('APPLICATION')) exit; ?>

And in all files that are allowed to be called externally:

<?php define('APPLICATION', true); ?>

     Balu

<< Back to user notes page

To Top