views:

14

answers:

1

Hi everyone. I'd like to know the BEST solution to secure includes files. For now my solution is this :

in the index file :

define('KEY','security');
include('s.php';

s.php :

if(KEY!='security') exit;
A: 
order deny,allow
deny from all
allow from 127.0.0.1

put this .htaccess in the include files seems to be a neat solution..

David 天宇 Wong