Posted By

grgcnnr on 09/21/11


Tagged

include


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

r15ch13
alebenson


Simple way to check that an include isn't being directly called


 / Published in: PHP
 

  1. if(count(get_included_files()) ==1) exit("Direct access not permitted.");

Report this snippet  

You need to login to post a comment.